Skip to content

Commit 27ac539

Browse files
committed
Tweak test case to improve robustness
1 parent fb4af96 commit 27ac539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/NameLookup/module_selector.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ extension B: main::Equatable {
122122

123123
// Test resolution of ModuleSelectorTestingKit:: using `C`
124124

125-
extension C {}
125+
extension ModuleSelectorTestingKit::C {}
126126

127-
extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
127+
extension C: ModuleSelectorTestingKit::Equatable {
128128
// expected-error@-1 {{type 'Equatable' is not imported through module 'ModuleSelectorTestingKit'}}
129-
// expected-note@-2 {{did you mean module 'Swift'?}} {{40-64=Swift}}
129+
// expected-note@-2 {{did you mean module 'Swift'?}} {{14-38=Swift}}
130130

131131
@_implements(ModuleSelectorTestingKit::Equatable, ModuleSelectorTestingKit::==(_:_:))
132132
// expected-error@-1 {{name cannot be qualified with module selector here}} {{53-79=}}

0 commit comments

Comments
 (0)