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
enumX7<T>where X7.X :G{case X } // expected-error{{enum case 'X' is not a member type of 'X7<T>'}}
247
247
// expected-error@-1{{cannot find type 'G' in scope}}
248
+
249
+
protocolMetatypeTypeResolutionProto{}
250
+
structX8<T>{
251
+
staticvarproperty1:T.Type{T.self }
252
+
staticfunc method1()->T.Type{T.self }
253
+
}
254
+
extensionX8where T ==MetatypeTypeResolutionProto{
255
+
// FIXME: Inconsistent contextual type resolution for generic metatypes;
256
+
// should be .Protocol in both cases.
257
+
staticvarproperty2:T.Type{ property1 }
258
+
// expected-error@-1 {{cannot convert return expression of type 'MetatypeTypeResolutionProto.Protocol' to return type 'MetatypeTypeResolutionProto.Type'}}
0 commit comments