mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed some invalid error squiggles with undef-sized arrays
This commit is contained in:
parent
e0103b7dd7
commit
319f071eae
3 changed files with 7 additions and 4 deletions
|
@ -16755,7 +16755,7 @@ void BfModule::EmitCtorBody(bool& skipBody)
|
|||
mCompiler->mResolvePassData->mSourceClassifier->SetElementType(fieldDef->mInitializer, BfSourceElementType_Normal);
|
||||
mCompiler->mResolvePassData->mSourceClassifier->VisitChild(fieldDef->mInitializer);
|
||||
|
||||
auto wantType = ResolveTypeRef(fieldDef->mTypeRef);
|
||||
auto wantType = ResolveTypeRef(fieldDef->mTypeRef, BfPopulateType_Declaration, BfResolveTypeRefFlag_AllowInferredSizedArray);
|
||||
if ((wantType != NULL) &&
|
||||
((wantType->IsVar()) || (wantType->IsLet()) || (wantType->IsRef())))
|
||||
wantType = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue