Ver Fonte

PopulateType fix for IsZeroGap check in MatchConstructor

Brian Fiete há 6 meses atrás
pai
commit
b010449c22
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

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