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:
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);
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue