mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user