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 {{cannot convert value of type '(T...)' to specified type '(x: T...)'}}
120
+
// expected-error@-1 {{cannot convert value of type '(repeat each T)' to specified type '(x: repeat each T)'}}
121
121
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
122
122
123
123
let _:(x:Int,repeateachT)=returnTuple1()
124
-
// expected-error@-1 {{'(T...)' is not convertible to '(x: Int, T...)', tuples have a different number of elements}}
124
+
// expected-error@-1 {{'(repeat each T)' is not convertible to '(x: Int, repeat each T)', tuples have a different number of elements}}
125
125
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
126
126
127
127
let _:(Int, x:repeateachT)=returnTuple2()
128
-
// expected-error@-1 {{cannot convert value of type '(Int, T...)' to specified type '(Int, x: T...)'}}
128
+
// expected-error@-1 {{cannot convert value of type '(Int, repeat each T)' to specified type '(Int, x: repeat each T)'}}
129
129
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
130
130
131
131
let _:(Int, x:String,repeateachT)=returnTuple2()
132
-
// expected-error@-1 {{'(Int, T...)' is not convertible to '(Int, x: String, T...)', tuples have a different number of elements}}
132
+
// expected-error@-1 {{'(Int, repeat each T)' is not convertible to '(Int, x: String, repeat each T)', tuples have a different number of elements}}
133
133
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
134
134
135
135
let _:(y:repeateachT)=returnTupleLabel1()
136
-
// expected-error@-1 {{cannot convert value of type '(x: T...)' to specified type '(y: T...)'}}
136
+
// expected-error@-1 {{cannot convert value of type '(x: repeat each T)' to specified type '(y: repeat each T)'}}
137
137
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
138
138
139
139
let _:(y:Int,repeateachT)=returnTupleLabel1()
140
-
// expected-error@-1 {{'(x: T...)' is not convertible to '(y: Int, T...)', tuples have a different number of elements}}
140
+
// expected-error@-1 {{'(x: repeat each T)' is not convertible to '(y: Int, repeat each T)', tuples have a different number of elements}}
141
141
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
142
142
143
143
let _:(x:repeateachT)=returnTupleLabel2()
144
-
// expected-error@-1 {{'(Int, x: T...)' is not convertible to '(x: T...)', tuples have a different number of elements}}
144
+
// expected-error@-1 {{'(Int, x: repeat each T)' is not convertible to '(x: repeat each T)', tuples have a different number of elements}}
145
145
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
146
146
147
147
let _:(Int, y:String,repeateachT)=returnTupleLabel2()
148
-
// expected-error@-1 {{'(Int, x: T...)' is not convertible to '(Int, y: String, T...)', tuples have a different number of elements}}
148
+
// expected-error@-1 {{'(Int, x: repeat each T)' is not convertible to '(Int, y: String, repeat each T)', tuples have a different number of elements}}
149
149
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
150
150
151
151
let _:(repeateachT, y:Float)=returnTupleLabel3()
152
-
// expected-error@-1 {{'(Int, T..., y: Float)' is not convertible to '(T..., y: Float)', tuples have a different number of elements}}
152
+
// expected-error@-1 {{'(Int, repeat each T, y: Float)' is not convertible to '(repeat each T, y: Float)', tuples have a different number of elements}}
153
153
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
154
154
155
155
let _:(Int,String,repeateachT, x:Float)=returnTupleLabel3()
156
-
// expected-error@-1 {{'(Int, T..., y: Float)' is not convertible to '(Int, String, T..., x: Float)', tuples have a different number of elements}}
156
+
// expected-error@-1 {{'(Int, repeat each T, y: Float)' is not convertible to '(Int, String, repeat each T, x: Float)', tuples have a different number of elements}}
157
157
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
158
158
159
-
let _:(repeateachT, y:Float)=returnTupleLabel4() // expected-error {{'(Int, x: T..., y: Float)' is not convertible to '(T..., y: Float)', tuples have a different number of elements}}
159
+
let _:(repeateachT, y:Float)=returnTupleLabel4() // expected-error {{'(Int, x: repeat each T, y: Float)' is not convertible to '(repeat each T, y: Float)', tuples have a different number of elements}}
160
160
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
161
161
162
-
let _:(Int, x:String, y:repeateachT)=returnTupleLabel4() // expected-error {{cannot convert value of type '(Int, x: String, y: Float)' to specified type '(Int, x: String, y: T...)'}}
162
+
let _:(Int, x:String, y:repeateachT)=returnTupleLabel4() // expected-error {{cannot convert value of type '(Int, x: String, y: Float)' to specified type '(Int, x: String, y: repeat each T)'}}
163
163
164
164
let _:(Int,repeateachT, x:repeateachT)=returnTupleLabel5()
165
-
// expected-error@-1 {{cannot convert value of type '(Int, T..., y: U...)' to specified type '(Int, T..., x: T...)'}}
165
+
// expected-error@-1 {{cannot convert value of type '(Int, repeat each T, y: repeat each U)' to specified type '(Int, repeat each T, x: repeat each T)'}}
166
166
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
167
167
// expected-error@-3 {{generic parameter 'U' could not be inferred}}
168
168
169
169
let _:(repeateachT, y:Float,repeateachT)=returnTupleLabel5()
170
-
// expected-error@-1 {{cannot convert value of type '(Int, T..., y: U...)' to specified type '(T..., y: Float, T...)'}}
170
+
// expected-error@-1 {{cannot convert value of type '(Int, repeat each T, y: repeat each U)' to specified type '(repeat each T, y: Float, repeat each T)'}}
171
171
// expected-error@-2 {{generic parameter 'T' could not be inferred}}
172
172
// expected-error@-3 {{generic parameter 'U' could not be inferred}}
173
173
174
-
let _:(repeateachT, y:Int)=returnTupleLabel6() // expected-error {{'(Int, x: T..., y: U...)' is not convertible to '(T..., y: Int)', tuples have a different number of elements}}
174
+
let _:(repeateachT, y:Int)=returnTupleLabel6() // expected-error {{'(Int, x: repeat each T, y: repeat each U)' is not convertible to '(repeat each T, y: Int)', tuples have a different number of elements}}
175
175
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
176
176
// expected-error@-2 {{generic parameter 'U' could not be inferred}}
let _:()->()=returnFunction2() // expected-error {{cannot convert value of type '(Int, T...) -> ()' to specified type '() -> ()'}}
206
+
let _:()->()=returnFunction2() // expected-error {{cannot convert value of type '(Int, repeat each T) -> ()' to specified type '() -> ()'}}
207
207
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
208
208
209
209
let _:(String)->()=returnFunction2() // expected-error {{cannot convert value of type '(Int) -> ()' to specified type '(String) -> ()'}}
210
210
let _:(String,Int)->()=returnFunction2() // expected-error {{cannot convert value of type '(Int, Int) -> ()' to specified type '(String, Int) -> ()'}}
211
211
212
-
let _:()->()=returnFunction3() // expected-error {{cannot convert value of type '(T..., Float) -> ()' to specified type '() -> ()'}}
212
+
let _:()->()=returnFunction3() // expected-error {{cannot convert value of type '(repeat each T, Float) -> ()' to specified type '() -> ()'}}
213
213
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
214
214
215
215
let _:(Float,Int)->()=returnFunction3() // expected-error {{cannot convert value of type '(Float, Float) -> ()' to specified type '(Float, Int) -> ()'}}
216
216
let _:(Float,Double,String)->()=returnFunction3() // expected-error {{cannot convert value of type '(Float, Double, Float) -> ()' to specified type '(Float, Double, String) -> ()'}}
217
217
218
-
let _:()->()=returnFunction4() // expected-error {{cannot convert value of type '(Int, T..., Float) -> ()' to specified type '() -> ()'}}
218
+
let _:()->()=returnFunction4() // expected-error {{cannot convert value of type '(Int, repeat each T, Float) -> ()' to specified type '() -> ()'}}
219
219
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
220
220
221
-
let _:(Int)->()=returnFunction4() // expected-error {{cannot convert value of type '(Int, T..., Float) -> ()' to specified type '(Int) -> ()'}}
221
+
let _:(Int)->()=returnFunction4() // expected-error {{cannot convert value of type '(Int, repeat each T, Float) -> ()' to specified type '(Int) -> ()'}}
222
222
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
223
223
224
224
let _:(Float,Int)->()=returnFunction4() // expected-error {{cannot convert value of type '(Int, Float) -> ()' to specified type '(Float, Int) -> ()'}}
@@ -280,7 +280,7 @@ func patternInstantiationGenericValid<T..., U...>(t: repeat each T, u: repeat ea
let _:(repeatSet<eachT>)=patternInstantiationTupleTest1() // expected-error {{cannot convert value of type '(Array<T>...)' to specified type '(Set<T>...)}}
283
+
let _:(repeatSet<eachT>)=patternInstantiationTupleTest1() // expected-error {{cannot convert value of type '(repeat Array<each T>)' to specified type '(repeat Set<each T>)}}
284
284
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
285
285
286
286
let _:(repeatArray<eachT>,Set<String>)=patternInstantiationTupleTest1() // expected-error {{type of expression is ambiguous without more context}}
0 commit comments