1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Removed redundant interface errors after type fail

This commit is contained in:
Brian Fiete 2022-06-01 15:21:32 -07:00
parent 030a7cda75
commit 3dadbc3506
2 changed files with 2 additions and 2 deletions

View file

@ -23221,7 +23221,7 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
bool interfaceFound = false;
for (auto ifaceInst : typeInstance->mInterfaces)
interfaceFound |= ifaceInst.mInterfaceType == mCurMethodInstance->mMethodInfoEx->mExplicitInterface;
if (!interfaceFound)
if ((!interfaceFound) && (!typeInstance->mTypeFailed))
{
if (methodDef->mMethodDeclaration != NULL)
Fail("Containing class has not declared to implement this interface", methodDef->mMethodDeclaration);