浏览代码

Fixed var case in SetupNullConditional

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

+ 2 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -20514,6 +20514,8 @@ BfTypedValue BfExprEvaluator::SetupNullConditional(BfTypedValue thisValue, BfTok
 	}	
 
 	thisValue = mModule->LoadValue(thisValue);
+	if (thisValue.mType->IsVar())
+		return thisValue;
 
 	BfPendingNullConditional* pendingNullCond = mModule->mCurMethodState->mPendingNullConditional;
 	if (pendingNullCond == NULL)