mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed global mixin lookup when there's an explicit target
This commit is contained in:
parent
80583d2dc2
commit
473246fa51
1 changed files with 1 additions and 1 deletions
|
@ -13252,7 +13252,7 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
|
|||
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);
|
||||
BfGlobalLookup globalLookup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue