Selaa lähdekoodia

Fixed mixin within block expression

Brian Fiete 1 vuosi sitten
vanhempi
commit
fd3bd861ae
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 1 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -17550,6 +17550,7 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
 
 	mModule->mBfIRBuilder->SaveDebugLocation();
 	SetAndRestoreValue<BfMixinState*> prevMixinState(curMethodState->mMixinState, mixinState);
+	SetAndRestoreValue<BfExprEvaluator*> prevExprEvaluator(curMethodState->mCurScope->mExprEvaluator, NULL);
 
 	BfGetSymbolReferenceKind prevSymbolRefKind = BfGetSymbolReferenceKind_None;
 	if (mModule->mCompiler->mResolvePassData != NULL)