mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed 'this' calls in mixins
This commit is contained in:
parent
fd64aa64d9
commit
49122ae6aa
1 changed files with 13 additions and 4 deletions
|
@ -6095,12 +6095,21 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
{
|
||||
checkNonStatic = false;
|
||||
}
|
||||
else if (mModule->mCurMethodState->mTempKind != BfMethodState::TempKind_None)
|
||||
else
|
||||
{
|
||||
checkNonStatic = mModule->mCurMethodState->mTempKind == BfMethodState::TempKind_NonStatic;
|
||||
if (mModule->mCurMethodState->mMixinState != NULL)
|
||||
{
|
||||
targetTypeInst = mModule->mCurMethodState->mMixinState->mMixinMethodInstance->GetOwner();
|
||||
curTypeDef = targetTypeInst->mTypeDef;
|
||||
}
|
||||
|
||||
if (mModule->mCurMethodState->mTempKind != BfMethodState::TempKind_None)
|
||||
{
|
||||
checkNonStatic = mModule->mCurMethodState->mTempKind == BfMethodState::TempKind_NonStatic;
|
||||
}
|
||||
else
|
||||
checkNonStatic = !mModule->mCurMethodInstance->mMethodDef->mIsStatic;
|
||||
}
|
||||
else
|
||||
checkNonStatic = !mModule->mCurMethodInstance->mMethodDef->mIsStatic;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue