浏览代码

Fixed error when type failure causes 'var' param - don't call

Brian Fiete 5 年之前
父节点
当前提交
293f4f51a2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 5 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -5276,6 +5276,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
 			wantType = methodInstance->GetParamType(paramIdx);
 			if (wantType->IsSelf())
 				wantType = methodInstance->GetOwner();
+			if (wantType->IsVar())
+			{
+				// Case happens when we can't find the argument type
+				failed = true;
+			}
 			BfParamKind paramKind = methodInstance->GetParamKind(paramIdx);
 
 			if (paramKind == BfParamKind_Params)