1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed parsing of generic expression-bodied methods

This commit is contained in:
Brian Fiete 2021-06-22 12:59:06 -07:00
parent 9ba8bd86b8
commit 0aa751dec7

View file

@ -9617,6 +9617,15 @@ BfGenericConstraintsDeclaration* BfReducer::CreateGenericConstraintsDeclaration(
break;
}
if (auto tokenNode = BfNodeDynCast<BfTokenNode>(nextNode))
{
if (tokenNode->mToken == BfToken_FatArrow)
{
isDone = true;
break;
}
}
tokenNode = ExpectTokenAfter(genericConstraint, BfToken_Comma, BfToken_LBrace, BfToken_Where, BfToken_Semicolon);
if (tokenNode == NULL)
{