Kaynağa Gözat

PopulateType fix for IsZeroGap check in MatchConstructor

Brian Fiete 6 ay önce
ebeveyn
işleme
b010449c22
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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++;