1
0
Fork 0
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:
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

@ -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);
}