1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed parsing for generic ctor 'this<X>() where X : int : base() '

This commit is contained in:
Brian Fiete 2025-05-30 17:21:20 +02:00
parent 1014824fd0
commit 6f5d3e0ca9

View file

@ -10932,7 +10932,7 @@ BfGenericConstraintsDeclaration* BfReducer::CreateGenericConstraintsDeclaration(
bool handled = false;
if (auto tokenNode = BfNodeDynCast<BfTokenNode>(nextNode))
{
if (tokenNode->mToken == BfToken_FatArrow)
if ((tokenNode->mToken == BfToken_FatArrow) || (tokenNode->mToken == BfToken_Colon))
{
isDone = true;
break;