浏览代码

PopulateType fix for IsZeroGap check in MatchConstructor

Brian Fiete 6 月之前
父节点
当前提交
b010449c22
共有 1 个文件被更改,包括 3 次插入0 次删除
  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++;