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
_ =repeat(each t,each u) // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
86
-
_ =repeatArray<(eachT,eachU)>() // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
87
-
_ =repeat(Array<eachT>(),each u) // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
86
+
_ =(repeat(each t,each u)) // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
87
+
_ =(repeatArray<(eachT,eachU)>()) // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
88
+
_ =(repeat(Array<eachT>(),each u)) // expected-error {{pack expansion requires that 'U' and 'T' have the same shape}}
88
89
}
89
90
90
91
func returnPackExpansionType<eachT>(_ t:repeateachT)->repeateachT{ // expected-error {{pack expansion 'repeat each T' can only appear in a function parameter list, tuple element, or generic argument list}}
0 commit comments