mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Properly reference alt method module
This commit is contained in:
parent
1dc1ec24a0
commit
01d9bfb66f
2 changed files with 5 additions and 2 deletions
|
@ -14788,7 +14788,7 @@ BfMethodDef* BfExprEvaluator::GetPropertyMethodDef(BfPropertyDef* propDef, BfMet
|
||||||
}
|
}
|
||||||
|
|
||||||
BfModuleMethodInstance BfExprEvaluator::GetPropertyMethodInstance(BfMethodDef* methodDef)
|
BfModuleMethodInstance BfExprEvaluator::GetPropertyMethodInstance(BfMethodDef* methodDef)
|
||||||
{
|
{
|
||||||
if (mPropDefBypassVirtual)
|
if (mPropDefBypassVirtual)
|
||||||
{
|
{
|
||||||
if (mPropTarget.mType->IsInterface())
|
if (mPropTarget.mType->IsInterface())
|
||||||
|
|
|
@ -12402,7 +12402,10 @@ BfModuleMethodInstance BfModule::GetMethodInstance(BfTypeInstance* typeInst, BfM
|
||||||
|
|
||||||
if (mCompiler->IsSkippingExtraResolveChecks())
|
if (mCompiler->IsSkippingExtraResolveChecks())
|
||||||
return BfModuleMethodInstance(methodInstance, BfIRFunction());
|
return BfModuleMethodInstance(methodInstance, BfIRFunction());
|
||||||
|
|
||||||
|
if (methodInstance->mDeclModule != this)
|
||||||
|
return ReferenceExternalMethodInstance(methodInstance, flags);
|
||||||
|
|
||||||
return BfModuleMethodInstance(methodInstance);
|
return BfModuleMethodInstance(methodInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue