@@ -68,7 +68,7 @@ extension B: main::Equatable {
68
68
// expected-error@-4 {{type 'Bool' is not imported through module 'main'}}
69
69
// expected-note@-5 {{did you mean module 'Swift'?}} {{56-60=Swift}}
70
70
main: : fatalError( )
71
- // expected-EVENTUALLY-error@-1 {{type 'fatalError' is not imported through module 'main'}}
71
+ // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'main'}}
72
72
// expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
73
73
}
74
74
@@ -130,7 +130,7 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
130
130
// expected-error@-1 {{type 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
131
131
// expected-note@-2 {{did you mean module 'Swift'?}} {{94-117=Swift}}
132
132
ModuleSelectorTestingKit: : fatalError( )
133
- // expected-EVENTUALLY-error@-1 {{type 'fatalError' is not imported through module 'main '}}
133
+ // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit '}}
134
134
// expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
135
135
}
136
136
@@ -139,6 +139,8 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
139
139
140
140
@_dynamicReplacement ( for: ModuleSelectorTestingKit: : negate( ) )
141
141
mutating func myNegate( ) {
142
+ // FIXME improve: expected-note@-1 {{did you mean 'myNegate'?}}
143
+
142
144
let fn : ( ModuleSelectorTestingKit: : Int , ModuleSelectorTestingKit : : Int ) -> ModuleSelectorTestingKit : : Int =
143
145
// expected-error@-1 3{{type 'Int' is not imported through module 'ModuleSelectorTestingKit'}}
144
146
// expected-note@-2 {{did you mean module 'Swift'?}} {{14-37=Swift}}
@@ -164,10 +166,11 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
164
166
}
165
167
else {
166
168
self = ModuleSelectorTestingKit : : C( value: . ModuleSelectorTestingKit: : min)
169
+ // FIXME improve: expected-error@-1 {{type 'Int' has no member 'ModuleSelectorTestingKit::min'}}
167
170
}
168
171
169
172
self . ModuleSelectorTestingKit : : myNegate( )
170
- // expected-EVENTUALLY- error@-2 {{can't find 'myNegate' in ModuleSelectorTestingKit}}
173
+ // FIXME improve: expected-error@-1 {{value of type 'C' has no member ' ModuleSelectorTestingKit::myNegate' }}
171
174
}
172
175
173
176
// FIXME: Can we test @convention(witness_method:)?
@@ -181,7 +184,7 @@ extension Swift::D {}
181
184
// expected-note@-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{11-16=ModuleSelectorTestingKit}}
182
185
183
186
extension D : Swift : : Equatable {
184
- // FIXME wat: expected-error@-1 {{implementation of 'Equatable' cannot be automatically synthesized in an extension in a different file to the type}}
187
+ // FIXME wat: expected-error@-1 * {{implementation of 'Equatable' cannot be automatically synthesized in an extension in a different file to the type}}
185
188
186
189
@_implements ( Swift: : Equatable, Swift: : == ( _: _: ) )
187
190
// expected-error@-1 {{name cannot be qualified with module selector here}} {{34-41=}}
@@ -199,6 +202,8 @@ extension D: Swift::Equatable {
199
202
@_dynamicReplacement ( for: Swift: : negate( ) )
200
203
// FIXME improve: expected-error@-1 {{replaced function 'Swift::negate()' could not be found}}
201
204
mutating func myNegate( ) {
205
+ // FIXME improve: expected-note@-1 {{did you mean 'myNegate'?}}
206
+
202
207
let fn : ( Swift: : Int , Swift : : Int ) -> Swift : : Int =
203
208
// FIXME:
204
209
( Swift: : + )
@@ -220,7 +225,7 @@ extension D: Swift::Equatable {
220
225
}
221
226
222
227
self . Swift : : myNegate( )
223
- // expected-EVENTUALLY- error@-1 {{can't find 'myNegate' in Swift}}
228
+ // FIXME improve: expected-error@-1 {{value of type 'D' has no member ' Swift::myNegate' }}
224
229
}
225
230
226
231
// FIXME: Can we test @convention(witness_method:)?
0 commit comments