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:
parent
3fcaa6b397
commit
ed6959973a
3 changed files with 60 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue