1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Fixed expression parsing issue from recent generic parsing change

This commit is contained in:
Brian Fiete 2022-02-08 11:26:24 -05:00
parent ceb400d573
commit 0c1ab7b668
2 changed files with 11 additions and 0 deletions

View file

@ -4258,6 +4258,11 @@ BfAstNode* BfReducer::DoCreateStatement(BfAstNode* node, CreateStmtFlags createS
}
else if (afterTypeRefNode == NULL)
isLocalVariable = false;
else if (auto tokenNode = BfNodeDynCast<BfTokenNode>(afterTypeRefNode))
{
if (tokenNode->mToken != BfToken_LParen)
isLocalVariable = false; // May be tuple
}
}
}