Skip to content

Commit ddbcccd

Browse files
committed
Correct fix-its in module_selector test
The history of this PR is actually a gigantic fiction and so some of the fix-it source locations are incorrect. Sorry about that.
1 parent 3218bb7 commit ddbcccd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/NameLookup/module_selector.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ extension C {}
119119

120120
extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
121121
// expected-error@-1 {{type 'Equatable' is not imported through module 'ModuleSelectorTestingKit'}}
122-
// expected-note@-2 {{did you mean module 'Swift'?}} {{39-62=Swift}}
122+
// expected-note@-2 {{did you mean module 'Swift'?}} {{40-64=Swift}}
123123

124124
@_implements(ModuleSelectorTestingKit::Equatable, ModuleSelectorTestingKit::==(_:_:))
125-
// expected-error@-1 {{name cannot be qualified with module selector here}} {{52-77=}}
125+
// expected-error@-1 {{name cannot be qualified with module selector here}} {{53-79=}}
126126
// expected-error@-2 {{type 'Equatable' is not imported through module 'ModuleSelectorTestingKit'}}
127-
// expected-note@-3 {{did you mean module 'Swift'?}} {{16-39=Swift}}
127+
// expected-note@-3 {{did you mean module 'Swift'?}} {{16-40=Swift}}
128128

129129
public static func equals(_: ModuleSelectorTestingKit::C, _: ModuleSelectorTestingKit::C) -> ModuleSelectorTestingKit::Bool {
130130
// expected-error@-1 {{type 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
131-
// expected-note@-2 {{did you mean module 'Swift'?}} {{94-117=Swift}}
131+
// expected-note@-2 {{did you mean module 'Swift'?}} {{96-120=Swift}}
132132
ModuleSelectorTestingKit::fatalError()
133133
// expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
134134
// expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
@@ -143,22 +143,22 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
143143

144144
let fn: (ModuleSelectorTestingKit::Int, ModuleSelectorTestingKit::Int) -> ModuleSelectorTestingKit::Int =
145145
// expected-error@-1 3{{type 'Int' is not imported through module 'ModuleSelectorTestingKit'}}
146-
// expected-note@-2 {{did you mean module 'Swift'?}} {{14-37=Swift}}
147-
// expected-note@-3 {{did you mean module 'Swift'?}} {{44-67=Swift}}
148-
// expected-note@-4 {{did you mean module 'Swift'?}} {{77-100=Swift}}
146+
// expected-note@-2 {{did you mean module 'Swift'?}} {{14-38=Swift}}
147+
// expected-note@-3 {{did you mean module 'Swift'?}} {{45-69=Swift}}
148+
// expected-note@-4 {{did you mean module 'Swift'?}} {{79-103=Swift}}
149149
(ModuleSelectorTestingKit::+)
150150
// FIXME: it'd be nice to handle module selectors on operators.
151151
// expected-error@-2 {{expected expression}}
152152
// expected-error@-3 {{expected expression after operator}}
153153

154154
let magnitude: Int.ModuleSelectorTestingKit::Magnitude = ModuleSelectorTestingKit::magnitude
155155
// expected-error@-1 {{type 'Magnitude' is not imported through module 'ModuleSelectorTestingKit'}}
156-
// expected-note@-2 {{did you mean module 'Swift'?}} {{24-47=Swift}}
156+
// expected-note@-2 {{did you mean module 'Swift'?}} {{24-48=Swift}}
157157
// FIXME incorrect: expected-error@-3 {{variable used within its own initial value}}
158158

159159
if ModuleSelectorTestingKit::Bool.ModuleSelectorTestingKit::random() {
160160
// expected-error@-1 {{declaration 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
161-
// expected-note@-2 {{did you mean module 'Swift'?}} {{8-31=Swift}}
161+
// expected-note@-2 {{did you mean module 'Swift'?}} {{8-32=Swift}}
162162

163163
ModuleSelectorTestingKit::negate()
164164
// expected-error@-1 {{declaration 'negate' is not imported through module 'ModuleSelectorTestingKit'}}

0 commit comments

Comments
 (0)