2
0
Эх сурвалжийг харах

PopulateType fix for IsZeroGap check in MatchConstructor

Brian Fiete 6 сар өмнө
parent
commit
b010449c22

+ 3 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -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++;