When parsing a function call, invoke parse without specialization since the "=" operator needs a ParseTree

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-03-13 22:31:34 +01:00
parent fb1ec6813f
commit 1f819bc136
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ namespace Parser {
const component_ptr& previous = parseTree.at(parseTree.size() - 1);
if (current.toktype == LPAR) {
try {
dynamic_cast<Call&>(*previous).ParseTree::operator=(parse<Call>(subTokens));
dynamic_cast<Call&>(*previous).ParseTree::operator=(parse(subTokens));
} catch (const bad_cast&) {
parsingError(current, "Unexpected parenthesis");
}