You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FIXME improve: expected-error@-1 {{cannot find type 'main::B' in scope}}
69
+
// expected-error@-1 {{type 'B' is not imported through module 'main'}}
70
+
// expected-note@-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{11-15=ModuleSelectorTestingKit}}
70
71
71
72
extensionB:@retroactivemain::Equatable{
72
-
// FIXME improve: expected-error@-1 {{cannot find type 'main::Equatable' in scope}}
73
+
// expected-error@-1 {{type 'Equatable' is not imported through module 'main'}}
74
+
// expected-note@-2 {{did you mean module 'Swift'?}} {{27-31=Swift}}
73
75
74
76
@_implements(main::Equatable, main::==(_:_:))
75
77
// expected-error@-1 {{name of sibling declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{33-39=}}
76
-
// FIXME improve: expected-error@-2 {{cannot find type 'main::Equatable' in scope}}
78
+
// expected-error@-2 {{type 'Equatable' is not imported through module 'main'}}
79
+
// expected-note@-3 {{did you mean module 'Swift'?}} {{16-20=Swift}}
// expected-error@-1 {{name of sibling declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{53-79=}}
136
-
// FIXME improve: expected-error@-2 {{cannot find type 'ModuleSelectorTestingKit::Equatable' in scope}}
146
+
// expected-error@-2 {{type 'Equatable' is not imported through module 'ModuleSelectorTestingKit'}}
147
+
// expected-note@-3 {{did you mean module 'Swift'?}} {{16-40=Swift}}
// FIXME improve: expected-error@-1 {{cannot find type 'Swift::D' in scope}}
204
+
// expected-error@-1 {{type 'D' is not imported through module 'Swift'}}
205
+
// expected-note@-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{11-16=ModuleSelectorTestingKit}}
189
206
190
207
extensionD:@retroactiveSwift::Equatable{
191
208
// Caused by Swift::D failing to typecheck in `equals(_:_:)`: expected-error@-1 *{{extension outside of file declaring struct 'D' prevents automatic synthesis of '==' for protocol 'Equatable'}} expected-note@-1 *{{add stubs for conformance}}
// expected-error@-1 {{name of sibling declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{34-41=}}
// expected-error@-1 {{cannot find type 'Swift::D' in scope}}
198
-
// expected-error@-2 {{cannot find type 'Swift::D' in scope}}
214
+
// expected-error@-1 2{{type 'D' is not imported through module 'Swift'}}
215
+
// expected-note@-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{32-37=ModuleSelectorTestingKit}}
216
+
// expected-note@-3 {{did you mean module 'ModuleSelectorTestingKit'?}} {{45-50=ModuleSelectorTestingKit}}
199
217
Swift::fatalError() // no-error -- not typechecking function bodies
200
218
}
201
219
@@ -301,7 +319,8 @@ func main::decl1(
301
319
// expected-error@-1 {{name in function declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{6-12=}}
302
320
main::p1: main::A,
303
321
// expected-error@-1 {{argument label cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{3-9=}}
304
-
// FIXME: expected-error@-2 {{cannot find type 'main::A' in scope}}
322
+
// expected-error@-2 {{type 'A' is not imported through module 'main'}}
323
+
// expected-note@-3 {{did you mean module 'ModuleSelectorTestingKit'?}} {{13-17=ModuleSelectorTestingKit}}
305
324
main::label p2: main::inout A,
306
325
// expected-error@-1 {{argument label cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{3-9=}}
307
326
// FIXME: expected-error@-2 {{expected identifier in dotted type}} should be something like {{type 'inout' is not imported through module 'main'}}
@@ -391,7 +410,8 @@ class main::decl4<main::T> {}
391
410
392
411
typealias main::decl5= main::Bool
393
412
// expected-error@-1 {{name in typealias declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{11-17=}}
394
-
// FIXME improve: expected-error@-2 {{cannot find type 'main::Bool' in scope}}
413
+
// expected-error@-2 {{type 'Bool' is not imported through module 'main'}}
414
+
// expected-note@-3 {{did you mean module 'Swift'?}} {{25-29=Swift}}
395
415
396
416
protocol main::decl6{
397
417
// expected-error@-1 {{name in protocol declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{10-16=}}
@@ -432,7 +452,8 @@ struct Parent {
432
452
433
453
typealias main::decl5= main::Bool
434
454
// expected-error@-1 {{name in typealias declaration cannot be qualified with a module selector}} expected-note@-1 {{remove module selector from this name}} {{13-19=}}
435
-
// FIXME improve: expected-error@-2 {{cannot find type 'main::Bool' in scope}}
455
+
// expected-error@-2 {{type 'Bool' is not imported through module 'main'}}
456
+
// expected-note@-3 {{did you mean module 'Swift'?}} {{27-31=Swift}}
0 commit comments