@@ -39,8 +39,7 @@ extension ModuleSelectorTestingKit::A: @retroactive Swift::Equatable {
39
39
// FIXME: it'd be nice to handle module selectors on operators.
40
40
41
41
let magnitude : Int . Swift : : Magnitude = main: : magnitude
42
- // FIXME incorrect: expected-error@-1 {{variable used within its own initial value}}
43
- // expected-EVENTUALLY-error@-1 {{something about type mismatch between 'Never' and 'Int.Swift::Magnitude'}}
42
+ // expected-error@-1 {{cannot convert value of type 'Never' to specified type 'Int.Magnitude' (aka 'UInt')}}
44
43
45
44
if Swift : : Bool. Swift : : rando m( ) {
46
45
self . ModuleSelectorTestingKit : : negate( )
@@ -99,7 +98,6 @@ extension B: main::Equatable {
99
98
let magnitude : Int . main : : Magnitude = main: : magnitude
100
99
// expected-error@-1 {{type 'Magnitude' is not imported through module 'main'}}
101
100
// expected-note@-2 {{did you mean module 'Swift'?}} {{24-28=Swift}}
102
- // FIXME incorrect: expected-error@-3 {{variable used within its own initial value}}
103
101
104
102
if main: : Bool. main : : rando m( ) {
105
103
// 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'}}
@@ -220,8 +217,8 @@ extension D: @retroactive 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'}}
@@ -469,7 +466,7 @@ func badModuleNames() {
469
466
// FIXME improve: expected-error@-1 {{value of type 'String' has no member 'NonexistentModule::count'}}
470
467
471
468
let x : NonexistentModule : : MyType = NonexistentModule: : MyType( )
472
- // expected-error@-1 {{use of undeclared type 'NonexistentModule::MyType'}}
469
+ // expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope }}
473
470
474
471
let y : A . NonexistentModule : : MyChildType = fatalError ( )
475
472
// expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of 'A'}}
0 commit comments