@@ -40,8 +40,7 @@ extension ModuleSelectorTestingKit::A: Swift::Equatable {
40
40
// FIXME: it'd be nice to handle module selectors on operators.
41
41
42
42
let magnitude : Int . Swift : : Magnitude = main: : magnitude
43
- // FIXME incorrect: expected-error@-1 {{variable used within its own initial value}}
44
- // expected-EVENTUALLY-error@-1 {{something about type mismatch between 'Never' and 'Int.Swift::Magnitude'}}
43
+ // expected-error@-1 {{cannot convert value of type 'Never' to specified type 'Int.Magnitude' (aka 'UInt')}}
45
44
46
45
if Swift : : Bool. Swift : : rando m( ) {
47
46
self . ModuleSelectorTestingKit : : negate( )
@@ -100,7 +99,6 @@ extension B: main::Equatable {
100
99
let magnitude : Int . main : : Magnitude = main: : magnitude
101
100
// expected-error@-1 {{type 'Magnitude' is not imported through module 'main'}}
102
101
// expected-note@-2 {{did you mean module 'Swift'?}} {{24-28=Swift}}
103
- // FIXME incorrect: expected-error@-3 {{variable used within its own initial value}}
104
102
105
103
if main: : Bool. main : : rando m( ) {
106
104
// expected-error@-1 {{declaration 'Bool' is not imported through module 'main'}}
@@ -163,7 +161,6 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
163
161
let magnitude : Int . ModuleSelectorTestingKit : : Magnitude = ModuleSelectorTestingKit: : magnitude
164
162
// expected-error@-1 {{type 'Magnitude' is not imported through module 'ModuleSelectorTestingKit'}}
165
163
// expected-note@-2 {{did you mean module 'Swift'?}} {{24-48=Swift}}
166
- // FIXME incorrect: expected-error@-3 {{variable used within its own initial value}}
167
164
168
165
if ModuleSelectorTestingKit : : Bool. ModuleSelectorTestingKit : : rando m( ) {
169
166
// expected-error@-1 {{declaration 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
@@ -193,7 +190,7 @@ extension Swift::D {}
193
190
// expected-note@-2 {{did you mean module 'ModuleSelectorTestingKit'?}} {{11-16=ModuleSelectorTestingKit}}
194
191
195
192
extension D : Swift : : Equatable {
196
- // FIXME wat: expected-error@-1 *{{implementation of 'Equatable' cannot be automatically synthesized in an extension in a different file to the type }}
193
+ // FIXME wat: expected-error@-1 *{{extension outside of file declaring struct 'D' prevents automatic synthesis of '==' for protocol 'Equatable' }}
197
194
198
195
@_implements ( Swift: : Equatable, Swift: : == ( _: _: ) )
199
196
// expected-error@-1 {{name cannot be qualified with module selector here}} {{34-41=}}
@@ -220,8 +217,8 @@ extension D: Swift::Equatable {
220
217
// expected-error@-2 {{expected expression}}
221
218
// expected-error@-3 {{expected expression after operator}}
222
219
let magnitude : Int . Swift : : Magnitude = Swift: : magnitude
223
- // expected-EVENTUALLY- error@-1 {{something about not finding 'magnitude' because we didn't look in self }}
224
- // FIXME: expected-error @-2 {{variable used within its own initial value }}
220
+ // expected-error@-1 {{declaration 'magnitude' is not imported through module 'Swift' }}
221
+ // FIXME should be un-addressable via main : expected-note @-2 {{did you mean module 'main'? }}
225
222
if Swift : : Bool. Swift : : rando m( ) {
226
223
Swift: : negate( )
227
224
// expected-error@-1 {{declaration 'negate' is not imported through module 'Swift'}}
@@ -468,7 +465,7 @@ func badModuleNames() {
468
465
// FIXME improve: expected-error@-1 {{value of type 'String' has no member 'NonexistentModule::count'}}
469
466
470
467
let x : NonexistentModule : : MyType = NonexistentModule: : MyType( )
471
- // expected-error@-1 {{use of undeclared type 'NonexistentModule::MyType'}}
468
+ // expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope }}
472
469
473
470
let y : A . NonexistentModule : : MyChildType = fatalError ( )
474
471
// expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of 'A'}}
0 commit comments