1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed some constraint lookups

This commit is contained in:
Brian Fiete 2022-01-11 12:02:23 -05:00
parent 3fcaa6b397
commit ed6959973a
3 changed files with 60 additions and 2 deletions

View file

@ -697,6 +697,12 @@ bool BfReducer::IsTypeReference(BfAstNode* checkNode, BfToken successToken, int*
}
else if (checkToken == BfToken_RBracket)
{
if (bracketDepth == 0)
{
// Not even an array
return false;
}
endBracket = checkIdx;
}
else if ((checkToken == BfToken_Star) || (checkToken == BfToken_Question))