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:
parent
030a7cda75
commit
3dadbc3506
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue