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
// expected-note@-1 {{same-shape requirement inferred between 'T' and 'U' [with each T = Array<Int>; each U = Set<Int>, Set<String>]}}
31
+
32
+
}
33
+
34
+
_ =Outer<Array<Int>,Array<String>>.Inner<Set<Int>,Set<String>>.self // ok
35
+
_ =Outer<Array<Int>,Array<String>>.Inner<Set<String>,Set<Int>>.self // expected-error {{'Outer<Array<Int>, Array<String>>.Inner' requires the types 'Pack{Int, String}' and 'Pack{String, Int}' be equivalent}}
36
+
_ =Outer<Array<Int>>.Inner<Set<Int>,Set<String>>.self // expected-error {{'Outer<Array<Int>>.Inner' requires the types 'Pack{Int}' and 'Pack{Int, String}' be equivalent}}
37
+
38
+
_ =Outer<Array<Int>,Array<String>>.InnerShape<Set<String>,Set<Int>>.self // ok
39
+
_ =Outer<Array<Int>>.InnerShape<Set<Int>,Set<String>>.self // expected-error {{'Outer<Array<Int>>.InnerShape' requires the type packs 'Pack{Array<Int>}' and 'Pack{Set<Int>, Set<String>}' have the same shape}}
0 commit comments