mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +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
|
@ -4957,7 +4957,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
bool interfaceFound = false;
|
||||
for (auto ifaceInst : typeInstance->mInterfaces)
|
||||
interfaceFound |= ifaceInst.mInterfaceType == explicitInterface;
|
||||
if (!interfaceFound)
|
||||
if ((!interfaceFound) && (!typeInstance->mTypeFailed))
|
||||
{
|
||||
Fail("Containing class has not declared to implement this interface", propDecl->mExplicitInterface, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue