@@ -50,6 +50,8 @@ extension ModuleSelectorTestingKit::A: Swift::Equatable {
50
50
}
51
51
52
52
self . main : : myNegate( )
53
+
54
+ Swift: : fatalError( )
53
55
}
54
56
55
57
// FIXME: Can we test @convention(witness_method:)?
@@ -75,9 +77,7 @@ extension B: main::Equatable {
75
77
// expected-note@-3 {{did you mean module 'ModuleSelectorTestingKit'?}} {{44-48=ModuleSelectorTestingKit}}
76
78
// expected-error@-4 {{type 'Bool' is not imported through module 'main'}}
77
79
// expected-note@-5 {{did you mean module 'Swift'?}} {{56-60=Swift}}
78
- main: : fatalError( )
79
- // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'main'}}
80
- // expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
80
+ main: : fatalError( ) // no-error: body not typechecked
81
81
}
82
82
83
83
// FIXME: Add tests with autodiff @_differentiable(jvp:vjp:) and
@@ -119,6 +119,10 @@ extension B: main::Equatable {
119
119
}
120
120
121
121
self . main : : myNegate( )
122
+
123
+ main: : fatalError( )
124
+ // expected-error@-1 {{declaration 'fatalError' is not imported through module 'main'}}
125
+ // expected-note@-2 {{did you mean module 'Swift'?}} {{5-9=Swift}}
122
126
}
123
127
124
128
// FIXME: Can we test @convention(witness_method:)?
@@ -140,9 +144,7 @@ extension C: ModuleSelectorTestingKit::Equatable {
140
144
public static func equals( _: ModuleSelectorTestingKit : : C, _: ModuleSelectorTestingKit : : C) -> ModuleSelectorTestingKit : : Bool {
141
145
// expected-error@-1 {{type 'Bool' is not imported through module 'ModuleSelectorTestingKit'}}
142
146
// expected-note@-2 {{did you mean module 'Swift'?}} {{96-120=Swift}}
143
- ModuleSelectorTestingKit: : fatalError( )
144
- // expected-EVENTUALLY-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
145
- // expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{4-8=Swift}}
147
+ ModuleSelectorTestingKit: : fatalError( ) // no-error: body not typechecked
146
148
}
147
149
148
150
// FIXME: Add tests with autodiff @_differentiable(jvp:vjp:) and
@@ -184,6 +186,10 @@ extension C: ModuleSelectorTestingKit::Equatable {
184
186
self . ModuleSelectorTestingKit : : myNegate( )
185
187
// expected-error@-1 {{declaration 'myNegate()' is not imported through module 'ModuleSelectorTestingKit'}}
186
188
// expected-note@-2 {{did you mean module 'main'?}} {{10-34=main}}
189
+
190
+ ModuleSelectorTestingKit: : fatalError( )
191
+ // expected-error@-1 {{declaration 'fatalError' is not imported through module 'ModuleSelectorTestingKit'}}
192
+ // expected-note@-2 {{did you mean module 'Swift'?}} {{5-29=Swift}}
187
193
}
188
194
189
195
// FIXME: Can we test @convention(witness_method:)?
@@ -244,6 +250,8 @@ extension D: Swift::Equatable {
244
250
self . Swift : : myNegate( )
245
251
// expected-error@-1 {{declaration 'myNegate()' is not imported through module 'Swift'}}
246
252
// expected-note@-2 {{did you mean module 'main'?}} {{10-15=main}}
253
+
254
+ Swift: : fatalError( )
247
255
}
248
256
249
257
// FIXME: Can we test @convention(witness_method:)?
0 commit comments