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
extensionA{} // expected-error {{non-nominal type 'A' cannot be extended}}
229
232
extensionA<T>{} // expected-error {{generic type 'A' specialized with too few type parameters (got 1, but expected 2)}}
@@ -232,6 +235,26 @@ extension C<T> {} // expected-error {{use of undeclared type 'T'}}
232
235
extensionC<Int>{} // expected-error {{constrained extension must be declared on the unspecialized generic type 'MyType' with constraints specified by a 'where' clause}}
233
236
234
237
238
+
protocolErrorQ{
239
+
associatedtypeY
240
+
}
241
+
protocolErrorP{
242
+
associatedtypeX:ErrorQ // expected-note {{protocol requires nested type 'X'; do you want to add it?}}
243
+
}
244
+
245
+
typealiasErrorA<T:ErrorP>=T.X.Y
246
+
247
+
structErrorB:ErrorP{ // expected-error {{type 'ErrorB' does not conform to protocol 'ErrorP'}}
248
+
typealiasX=ErrorC // expected-note {{possibly intended match 'ErrorB.X' (aka 'ErrorC') does not conform to 'ErrorQ'}}
0 commit comments