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