Skip to content

Commit 2df956a

Browse files
committed
Make decl shadowing ask the right question
If it's going to validate the declaration, it wants to know if there's an interface type. Computing the generic signature can be done on demand.
1 parent 92d5827 commit 2df956a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/NameLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static void recordShadowedDecls(ArrayRef<ValueDecl *> decls,
470470
// If the decl is currently being validated, this is likely a recursive
471471
// reference and we'll want to skip ahead so as to avoid having its type
472472
// attempt to desugar itself.
473-
if (!decl->hasValidSignature())
473+
if (!decl->hasInterfaceType())
474474
continue;
475475

476476
// FIXME: the canonical type makes a poor signature, because we don't

0 commit comments

Comments
 (0)