Skip to content

Commit de1c0cd

Browse files
authored
Merge pull request #25634 from davidungar/Fix-SR-10949b
2 parents 4149c8f + aac3a3d commit de1c0cd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ void UnqualifiedLookupFactory::addUnavailableInnerResults() {
10021002
void UnqualifiedLookupFactory::lookForAModuleWithTheGivenName(
10031003
DeclContext *const dc) {
10041004
using namespace namelookup;
1005-
if (!Name.isSimpleName())
1005+
if (!Name.isSimpleName() || Name.isSpecial())
10061006
return;
10071007

10081008
// Look for a module with the given name.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extension Foo {
2+
init(_ bar: Bar)
3+
self.init
4+
5+
// RUN: %sourcekitd-test -req=cursor -offset=51 %s -- %s

0 commit comments

Comments
 (0)