@@ -52,6 +52,8 @@ extension ModuleSelectorTestingKit::A: @retroactive Swift::Equatable {
52
52
}
53
53
54
54
self . main : : myNegate( )
55
+
56
+ Swift: : fatalError( )
55
57
}
56
58
57
59
// FIXME: Can we test @convention(witness_method:)?
@@ -77,9 +79,7 @@ extension B: main::Equatable {
77
79
// expected-note@-3 {{did you mean module 'ModuleSelectorTestingKit'?}} {{44-48=ModuleSelectorTestingKit}}
78
80
// expected-error@-4 {{type 'Bool' is not imported through module 'main'}}
79
81
// expected-note@-5 {{did you mean module 'Swift'?}} {{56-60=Swift}}
80
- main: : fatalError( )
81
- // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'main'}}
82
- // expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
82
+ main: : fatalError( ) // no-error: body not typechecked
83
83
}
84
84
85
85
// FIXME: Add tests with autodiff @_differentiable(jvp:vjp:) and
@@ -122,6 +122,10 @@ extension B: main::Equatable {
122
122
}
123
123
124
124
self . main : : myNegate( )
125
+
126
+ main: : fatalError( )
127
+ // expected-error@-1 {{declaration 'fatalError' is not imported through module 'main'}}
128
+ // expected-note@-2 {{did you mean module 'Swift'?}} {{5-9=Swift}}
125
129
}
126
130
127
131
// FIXME: Can we test @convention(witness_method:)?
@@ -143,9 +147,7 @@ extension C: ModuleSelectorTestingKit::Equatable {
143
147
public static func equals( _: ModuleSelectorTestingKit : : C, _: ModuleSelectorTestingKit : : C) -> ModuleSelectorTestingKit : : Bool {
144
148
// expected-error@-1 {{type 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
145
149
// expected-note@-2 {{did you mean module 'Swift'?}} {{96-120=Swift}}
146
- ModuleSelectorTestingKit: : fatalError( )
147
- // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
148
- // expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
150
+ ModuleSelectorTestingKit: : fatalError( ) // no-error: body not typechecked
149
151
}
150
152
151
153
// FIXME: Add tests with autodiff @_differentiable(jvp:vjp:) and
@@ -187,6 +189,10 @@ extension C: ModuleSelectorTestingKit::Equatable {
187
189
self . ModuleSelectorTestingKit : : myNegate( )
188
190
// expected-error@-1 {{declaration 'myNegate()' is not imported through module 'ModuleSelectorTestingKit'}}
189
191
// expected-note@-2 {{did you mean module 'main'?}} {{10-34=main}}
192
+
193
+ ModuleSelectorTestingKit: : fatalError( )
194
+ // expected-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
195
+ // expected-note@-2 {{did you mean module 'Swift'?}} {{5-29=Swift}}
190
196
}
191
197
192
198
// FIXME: Can we test @convention(witness_method:)?
@@ -248,6 +254,8 @@ extension D: @retroactive Swift::Equatable {
248
254
self . Swift : : myNegate( )
249
255
// expected-error@-1 {{declaration 'myNegate()' is not imported through module 'Swift'}}
250
256
// expected-note@-2 {{did you mean module 'main'?}} {{10-15=main}}
257
+
258
+ Swift: : fatalError( )
251
259
}
252
260
253
261
// FIXME: Can we test @convention(witness_method:)?
0 commit comments