1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed symbol reference issue with default interface method impls

This commit is contained in:
Brian Fiete 2022-01-29 11:07:32 -05:00
parent e1d75d66bf
commit eab64df7ce

View file

@ -18914,7 +18914,8 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
}
}
if ((mCompiler->mResolvePassData != NULL) && (methodDeclaration != NULL) && (nameNode != NULL) &&
(mCompiler->mResolvePassData->mGetSymbolReferenceKind == BfGetSymbolReferenceKind_Method) && (methodDef->mIdx >= 0))
(mCompiler->mResolvePassData->mGetSymbolReferenceKind == BfGetSymbolReferenceKind_Method) &&
(methodDef->mIdx >= 0) && (!methodInstance->mIsForeignMethodDef))
{
if (methodInstance->GetExplicitInterface() == NULL)
mCompiler->mResolvePassData->HandleMethodReference(nameNode, typeDef, methodDef);