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-error@-1 {{generic parameter 'each T' could not be inferred}}
244
-
// expected-error@-2 {{cannot convert value of type '(repeat Array<each T>)' to specified type 'Set<Int>'}}
243
+
// expected-error@-1 {{cannot convert value of type '(repeat Array<Pack{_}>)' to specified type 'Set<Int>'}}
245
244
246
-
let _:(Array<Int>,Set<String>)=patternInstantiationTupleTest1() // expected-error {{type of expression is ambiguous without more context}}
245
+
let _:(Array<Int>,Set<String>)=patternInstantiationTupleTest1() // expected-error {{'(repeat Array<Pack{Int, _}>)' is not convertible to '(Array<Int>, Set<String>)', tuples have a different number of elements}}
let _:(repeatSet<eachT>)=patternInstantiationTupleTest1() // expected-error {{cannot convert value of type '(repeat Array<each T>)' to specified type '(repeat Set<each T>)}}
274
273
// expected-error@-1 {{generic parameter 'each T' could not be inferred}}
275
274
276
-
let _:(repeatArray<eachT>,Set<String>)=patternInstantiationTupleTest1() // expected-error {{type of expression is ambiguous without more context}}
275
+
let _:(repeatArray<eachT>,Set<String>)=patternInstantiationTupleTest1() // expected-error {{'(repeat Array<Pack{repeat each T, _}>)' is not convertible to '(repeat Array<each T>, Set<String>)', tuples have a different number of elements}}
277
276
}
278
277
279
278
// rdar://107996926 - Vanishing metatype of tuple not supported
0 commit comments