mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixes to inferred-sized array error
This commit is contained in:
parent
f4b2d58273
commit
ce1dbd88ed
6 changed files with 12 additions and 8 deletions
|
@ -3259,7 +3259,7 @@ int BfResolvedTypeSet::DoHash(BfTypeReference* typeRef, LookupContext* ctx, BfHa
|
|||
else if (constant->mConstType == BfConstType_Undef)
|
||||
{
|
||||
elementCount = -1; // Marker for undef
|
||||
if ((ctx->mResolveFlags & BfResolveTypeRefFlag_AllowUnknownSizedArray) == 0)
|
||||
if ((ctx->mResolveFlags & BfResolveTypeRefFlag_AllowInferredSizedArray) == 0)
|
||||
{
|
||||
ctx->mModule->Fail("Invalid use of inferred-sized array", sizeExpr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue