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

Fixed global mixin lookup when there's an explicit target

This commit is contained in:
Brian Fiete 2020-08-03 05:51:17 -07:00
parent 80583d2dc2
commit 473246fa51

View file

@ -13252,7 +13252,7 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
methodMatcher.CheckType(mModule->mCurTypeInstance, BfTypedValue(), false); methodMatcher.CheckType(mModule->mCurTypeInstance, BfTypedValue(), false);
} }
if ((methodMatcher.mBestMethodDef == NULL) && (mModule->mContext->mCurTypeState != NULL)) if ((methodMatcher.mBestMethodDef == NULL) && (target.mType == NULL) && (mModule->mContext->mCurTypeState != NULL))
{ {
BF_ASSERT(mModule->mCurTypeInstance == mModule->mContext->mCurTypeState->mTypeInstance); BF_ASSERT(mModule->mCurTypeInstance == mModule->mContext->mCurTypeState->mTypeInstance);
BfGlobalLookup globalLookup; BfGlobalLookup globalLookup;