Don't check the inheritance clauses of extensions as part of validating the type they extend.

This makes the type checking slightly lazier for declarations, but is
otherwise NFC.

Swift SVN r20686
This commit is contained in:
Doug Gregor
2014-07-29 19:49:02 +00:00
parent e8c79f3236
commit 7c97642bf3
4 changed files with 17 additions and 3 deletions

View File

@@ -638,6 +638,9 @@ findExplicitConformance(NominalTypeDecl *nominal, ProtocolDecl *protocol,
// Visit the extensions of this type.
for (auto ext : currentNominal->getExtensions()) {
if (resolver)
resolver->resolveExtension(ext);
if (isProtocolInList(ext, ext->getProtocols(), ext->getConformances())) {
// Break outer loop as well.
stack.clear();