@@ -129,8 +129,8 @@ extension B: @retroactive main::Equatable {
129129 // expected-error@-3 {{cannot infer contextual base in reference to member 'main::min'}}
130130
131131 self = B . main : : init( value: . min)
132- // FIXME improve: expected-error@-1 {{'B' cannot be constructed because it has no accessible initializers }}
133- // expected-error @-2 {{cannot infer contextual base in reference to member 'min' }}
132+ // expected-error@-1 {{'init(value:)' is not imported through module 'main' }}
133+ // expected-note @-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{16-20=ModuleSelectorTestingKit }}
134134 }
135135
136136 self . main : : myNegate( )
@@ -183,7 +183,7 @@ extension C: @retroactive ModuleSelectorTestingKit::Equatable {
183183 @_dynamicReplacement ( for: ModuleSelectorTestingKit: : negate( ) )
184184
185185 mutating func myNegate( ) {
186- // expected-note@-1 {{did you mean 'myNegate'? }}
186+ // expected-note@-1 {{'myNegate()' declared here }}
187187
188188 let fn : ( ModuleSelectorTestingKit: : Int , ModuleSelectorTestingKit : : Int ) -> ModuleSelectorTestingKit : : Int =
189189 // expected-error@-1 3{{'Int' is not imported through module 'ModuleSelectorTestingKit'}}
@@ -213,13 +213,15 @@ extension C: @retroactive ModuleSelectorTestingKit::Equatable {
213213 }
214214 else {
215215 self = ModuleSelectorTestingKit : : C( value: . ModuleSelectorTestingKit: : min)
216- // FIXME improve: expected-error@-1 {{type 'Int' has no member 'ModuleSelectorTestingKit::min'}}
216+ // expected-error@-1 {{'min' is not imported through module 'ModuleSelectorTestingKit'}}
217+ // expected-note@-2 {{did you mean module 'Swift'?}} {{50-74=Swift}}
217218
218219 self = C . ModuleSelectorTestingKit : : init( value: . min)
219220 }
220221
221222 self . ModuleSelectorTestingKit : : myNegate( )
222- // FIXME improve: expected-error@-1 {{value of type 'C' has no member 'ModuleSelectorTestingKit::myNegate'}}
223+ // expected-error@-1 {{'myNegate()' is not imported through module 'ModuleSelectorTestingKit'}}
224+ // expected-note@-2 {{did you mean module 'main'?}} {{10-34=main}}
223225
224226 ModuleSelectorTestingKit: : fatalError( )
225227 // expected-error@-1 {{'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
@@ -261,7 +263,7 @@ extension D: @retroactive Swift::Equatable {
261263 // FIXME improve: expected-error@-1 {{replaced function 'Swift::negate()' could not be found}}
262264
263265 mutating func myNegate( ) {
264- // expected-note@-1 {{did you mean 'myNegate'? }}
266+ // expected-note@-1 {{'myNegate()' declared here }}
265267
266268 let fn : ( Swift: : Int , Swift : : Int ) -> Swift : : Int =
267269 ( Swift: : + )
@@ -285,12 +287,13 @@ extension D: @retroactive Swift::Equatable {
285287 // expected-error@-3 {{cannot infer contextual base in reference to member 'Swift::min'}}
286288
287289 self = D. Swift: : init( value: . min)
288- // FIXME improve: expected-error@-1 {{'D' cannot be constructed because it has no accessible initializers }}
289- // expected-error @-2 {{cannot infer contextual base in reference to member 'min' }}
290+ // expected-error@-1 {{'init(value:)' is not imported through module 'Swift' }}
291+ // expected-note @-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{16-21=ModuleSelectorTestingKit }}
290292 }
291293
292294 self . Swift : : myNegate( )
293- // FIXME improve: expected-error@-1 {{value of type 'D' has no member 'Swift::myNegate'}}
295+ // expected-error@-1 {{'myNegate()' is not imported through module 'Swift'}}
296+ // expected-note@-2 {{did you mean module 'main'?}} {{10-15=main}}
294297
295298 Swift: : fatalError( )
296299
@@ -392,8 +395,8 @@ func badModuleNames() {
392395 // expected-note@-2 {{did you mean module 'Swift'?}} {{3-20=Swift}}
393396
394397 _ = " foo " . NonexistentModule: : count
395- // FIXME improve: expected-error@-1 {{value of type 'String' has no member 'NonexistentModule::count '}}
396- // FIXME: expected-EVENTUALLY -note@-2 {{did you mean module 'Swift'?}} {{13-30=Swift}}
398+ // expected-error@-1 {{'count' is not imported through module 'NonexistentModule'}}
399+ // expected-note@-2 {{did you mean module 'Swift'?}} {{13-30=Swift}}
397400
398401 let x : NonexistentModule : : MyType = NonexistentModule: : MyType( )
399402 // expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope}}
0 commit comments