@@ -74,7 +74,7 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
74
74
// FIXME: expected-error@-3 {{variable used within its own initial value}}
75
75
if ModuleSelectorTestingKit : : Bool. ModuleSelectorTestingKit : : rando m( ) {
76
76
ModuleSelectorTestingKit: : negate( )
77
- // expected-EVENTUALLY- error@-1 {{something about not finding ' negate' because we didn't look in self }}
77
+ // FIXME improve, suggest adding 'self.': expected-error@-1 {{use of unresolved identifier 'ModuleSelectorTestingKit:: negate'}}
78
78
}
79
79
else {
80
80
self = ModuleSelectorTestingKit : : C( value: . ModuleSelectorTestingKit: : min)
@@ -187,61 +187,57 @@ func main::decl1(
187
187
) {
188
188
let main : : decl1a = " a "
189
189
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
190
- // expected-warning@-2 {{never used}}
191
190
192
191
var main : : decl1b = " b "
193
192
// expected-error@-1 {{name of variable declaration cannot be qualified with module selector}}
194
- // expected-warning@-2 {{never used}}
195
193
196
194
let ( main: : decl1c, main: : decl1d) = ( " c " , " d " )
197
195
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
198
196
// expected-error@-2 {{name of constant declaration cannot be qualified with module selector}}
199
- // expected-warning@-3 2{{never used}}
200
197
201
198
if let ( main: : decl1e, main: : decl1f) = Optional ( ( " e " , " f " ) ) { }
202
199
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
203
200
// expected-error@-2 {{name of constant declaration cannot be qualified with module selector}}
204
- // expected-warning@-3 2{{never used}}
205
201
206
202
guard let ( main: : decl1g, main: : decl1h) = Optional ( ( " g " , " h " ) ) else { return }
207
203
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
208
204
// expected-error@-2 {{name of constant declaration cannot be qualified with module selector}}
209
- // expected-warning@-3 {{never used}}
210
205
211
- switch Optional ( main: : decl1g) { // FIXME expecting an error later
206
+ // From uses in the switch statements below:
207
+ // expected-note@-5 3{{did you mean 'decl1g'?}}
208
+
209
+ switch Optional ( main: : decl1g) {
210
+ // expected-error@-1 {{use of unresolved identifier 'main::decl1g'}}
212
211
case Optional . some( let main: : decl1i) :
213
212
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
214
- // expected-warning@-2 {{never used}}
215
213
break
216
214
case . none:
217
215
break
218
216
}
219
217
220
- switch Optional ( main: : decl1g) { // FIXME expecting an error later
218
+ switch Optional ( main: : decl1g) {
219
+ // expected-error@-1 {{use of unresolved identifier 'main::decl1g'}}
221
220
case let Optional . some( main: : decl1j) :
222
221
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
223
- // expected-warning@-2 {{never used}}
224
222
break
225
223
case . none:
226
224
break
227
225
}
228
226
229
227
switch Optional ( main: : decl1g) {
230
- case let main: : decl1k? :
228
+ // expected-error@-1 {{use of unresolved identifier 'main::decl1g'}}
229
+ case let main: : decl1k? :
231
230
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
232
- // expected-warning@-2 {{never used}}
233
231
break
234
232
case . none:
235
233
break
236
234
}
237
235
238
236
for main : : decl1l in " lll " { }
239
237
// expected-error@-1 {{name of constant declaration cannot be qualified with module selector}}
240
- // expected-warning@-2 {{never used}}
241
238
242
239
" lll " . forEach { [ main: : magnitude]
243
240
// expected-error@-1 {{name of captured variable declaration cannot be qualified with module selector}}
244
- // expected-warning@-2 {{never used}}
245
241
main: : elem in print( elem)
246
242
// expected-error@-1 {{name of parameter declaration cannot be qualified with module selector}}
247
243
}
0 commit comments