Browse Source

Fixed mixin within block expression

Brian Fiete 1 year ago
parent
commit
fd3bd861ae
1 changed files with 1 additions and 0 deletions
  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)