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:
parent
ceb400d573
commit
0c1ab7b668
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,12 @@ namespace Tests
|
|||
{
|
||||
Test.FatalError();
|
||||
}
|
||||
|
||||
String inStr = "Abc";
|
||||
bool b =
|
||||
{
|
||||
inStr.Length > 1 || 2 == 3
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue