1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

PopulateType fix for IsZeroGap check in MatchConstructor

This commit is contained in:
Brian Fiete 2025-03-18 06:02:14 -04:00
parent 3a67152e78
commit b010449c22

View file

@ -9063,7 +9063,10 @@ BfTypedValue BfExprEvaluator::MatchConstructor(BfAstNode* targetSrc, BfMethodBou
auto origAllowAppendKind = allowAppendKind;
if (allowAppendKind == BfAllowAppendKind_Infer)
{
mModule->PopulateType(targetType);
allowAppendKind = targetType->IsZeroGap() ? BfAllowAppendKind_ZeroGap : BfAllowAppendKind_Yes;
}
static int sCtorCount = 0;
sCtorCount++;