Skip to content

Commit 8628fa7

Browse files
committed
Tweak test case to improve robustness
1 parent 4a15f76 commit 8628fa7

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
@@ -123,11 +123,11 @@ extension B: main::Equatable {
123123

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

126-
extension C {}
126+
extension ModuleSelectorTestingKit::C {}
127127

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

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

0 commit comments

Comments
 (0)