1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed null conditional mixin invocation

This commit is contained in:
Brian Fiete 2025-01-25 08:12:18 -08:00
parent 7db915cb4e
commit d92f27a091
2 changed files with 2 additions and 6 deletions

View file

@ -17896,6 +17896,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);
SetAndRestoreValue<BfPendingNullConditional*> prevNullConditional(curMethodState->mPendingNullConditional, NULL);
BfGetSymbolReferenceKind prevSymbolRefKind = BfGetSymbolReferenceKind_None;
if (mModule->mCompiler->mResolvePassData != NULL)