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
return E_32551313.Left("", Foo_32551313()) // expected-error {{extra argument in call}}
107
+
return E_32551313.Left("", Foo_32551313()) // expected-error {{enum case 'Left' expects a single parameter of type 'L' [with L = (String, Foo_32551313?)]}}
108
+
// expected-note@-1 {{did you mean to pass a tuple?}} {{28-28=(}} {{46-46=)}}
generic(3, 4) // expected-error {{extra argument in call}}
72
+
generic(3, 4) // expected-error {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{11-11=(}} {{15-15=)}}
73
73
generic((3))
74
74
generic((3, 4))
75
75
76
76
genericLabeled(x: 3)
77
-
genericLabeled(x: 3, 4) // expected-error {{extra argument in call}}
77
+
genericLabeled(x: 3, 4) // expected-error {{global function 'genericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{20-20=(}} {{25-25=)}}
78
78
genericLabeled(x: (3))
79
79
genericLabeled(x: (3, 4))
80
80
@@ -92,7 +92,7 @@ do {
92
92
let d = (a, b)
93
93
94
94
generic(a)
95
-
generic(a, b) // expected-error {{extra argument in call}}
95
+
generic(a, b) // expected-error {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{11-11=(}} {{15-15=)}}
96
96
generic((a))
97
97
generic(c)
98
98
generic((a, b))
@@ -114,7 +114,7 @@ do {
114
114
var d = (a, b)
115
115
116
116
generic(a)
117
-
generic(a, b) // expected-error {{extra argument in call}}
117
+
generic(a, b) // expected-error {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{11-11=(}} {{15-15=)}}
118
118
generic((a))
119
119
generic(c)
120
120
generic((a, b))
@@ -256,12 +256,12 @@ do {
256
256
let s = Concrete()
257
257
258
258
s.generic(3)
259
-
s.generic(3, 4) // expected-error {{extra argument in call}}
259
+
s.generic(3, 4) // expected-error {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{13-13=(}} {{17-17=)}}
260
260
s.generic((3))
261
261
s.generic((3, 4))
262
262
263
263
s.genericLabeled(x: 3)
264
-
s.genericLabeled(x: 3, 4) // expected-error {{extra argument in call}}
264
+
s.genericLabeled(x: 3, 4) // expected-error {{instance method 'genericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{22-22=(}} {{27-27=)}}
265
265
s.genericLabeled(x: (3))
266
266
s.genericLabeled(x: (3, 4))
267
267
@@ -281,7 +281,7 @@ do {
281
281
let d = (a, b)
282
282
283
283
s.generic(a)
284
-
s.generic(a, b) // expected-error {{extra argument in call}}
284
+
s.generic(a, b) // expected-error {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{13-13=(}} {{17-17=)}}
285
285
s.generic((a))
286
286
s.generic((a, b))
287
287
s.generic(d)
@@ -304,7 +304,7 @@ do {
304
304
var d = (a, b)
305
305
306
306
s.generic(a)
307
-
s.generic(a, b) // expected-error {{extra argument in call}}
307
+
s.generic(a, b) // expected-error {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{13-13=(}} {{17-17=)}}
308
308
s.generic((a))
309
309
s.generic((a, b))
310
310
s.generic(d)
@@ -390,12 +390,12 @@ do {
390
390
var s = Concrete()
391
391
392
392
s.mutatingGeneric(3)
393
-
s.mutatingGeneric(3, 4) // expected-error {{extra argument in call}}
393
+
s.mutatingGeneric(3, 4) // expected-error {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{21-21=(}} {{25-25=)}}
394
394
s.mutatingGeneric((3))
395
395
s.mutatingGeneric((3, 4))
396
396
397
397
s.mutatingGenericLabeled(x: 3)
398
-
s.mutatingGenericLabeled(x: 3, 4) // expected-error {{extra argument in call}}
398
+
s.mutatingGenericLabeled(x: 3, 4) // expected-error {{instance method 'mutatingGenericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{30-30=(}} {{35-35=)}}
399
399
s.mutatingGenericLabeled(x: (3))
400
400
s.mutatingGenericLabeled(x: (3, 4))
401
401
@@ -415,7 +415,7 @@ do {
415
415
let d = (a, b)
416
416
417
417
s.mutatingGeneric(a)
418
-
s.mutatingGeneric(a, b) // expected-error {{extra argument in call}}
418
+
s.mutatingGeneric(a, b) // expected-error {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{21-21=(}} {{25-25=)}}
419
419
s.mutatingGeneric((a))
420
420
s.mutatingGeneric((a, b))
421
421
s.mutatingGeneric(d)
@@ -438,7 +438,7 @@ do {
438
438
var d = (a, b)
439
439
440
440
s.mutatingGeneric(a)
441
-
s.mutatingGeneric(a, b) // expected-error {{extra argument in call}}
441
+
s.mutatingGeneric(a, b) // expected-error {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{21-21=(}} {{25-25=)}}
_ = GenericInit(3, 4) // expected-error {{extra argument in call}}
932
+
_ = GenericInit(3, 4) // expected-error {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{19-19=(}} {{23-23=)}}
_ = GenericInitLabeled(x: 3, 4) // expected-error {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{28-28=(}} {{33-33=)}}
936
936
_ = GenericInitLabeled(x: (3, 4))
937
937
938
938
_ = GenericInitTwo(3, 4)
@@ -967,7 +967,7 @@ do {
967
967
let b = 4
968
968
let c = (a, b)
969
969
970
-
_ = GenericInit(a, b) // expected-error {{extra argument in call}}
970
+
_ = GenericInit(a, b) // expected-error {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{19-19=(}} {{23-23=)}}
971
971
_ = GenericInit((a, b))
972
972
_ = GenericInit(c)
973
973
@@ -1003,7 +1003,7 @@ do {
1003
1003
var b = 4
1004
1004
var c = (a, b)
1005
1005
1006
-
_ = GenericInit(a, b) // expected-error {{extra argument in call}}
1006
+
_ = GenericInit(a, b) // expected-error {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{19-19=(}} {{23-23=)}}
1007
1007
_ = GenericInit((a, b))
1008
1008
_ = GenericInit(c)
1009
1009
@@ -1060,7 +1060,7 @@ do {
1060
1060
_ = s1[(3.0, 4.0)]
1061
1061
1062
1062
let s1a = GenericSubscriptLabeled<(Double, Double)>()
1063
-
_ = s1a [x: 3.0, 4.0] // expected-error {{subscript expects a single parameter of type '(Double, Double)'}} {{12-12=(}} {{23-23=)}}
1063
+
_ = s1a [x: 3.0, 4.0] // expected-error {{subscript expects a single parameter of type '(Double, Double)'}} {{14-14=(}} {{23-23=)}}
1064
1064
_ = s1a [x: (3.0, 4.0)]
1065
1065
1066
1066
let s2 = GenericSubscriptTwo<Double>()
@@ -1072,7 +1072,7 @@ do {
1072
1072
_ = s3[(3.0, 4.0)]
1073
1073
1074
1074
let s3a = GenericSubscriptLabeledTuple<Double>()
1075
-
_ = s3a[x: 3.0, 4.0] // expected-error {{subscript expects a single parameter of type '(Double, Double)'}} {{11-11=(}} {{22-22=)}}
1075
+
_ = s3a[x: 3.0, 4.0] // expected-error {{subscript expects a single parameter of type '(Double, Double)'}} {{13-13=(}} {{22-22=)}}
1076
1076
_ = s3a[x: (3.0, 4.0)]
1077
1077
}
1078
1078
@@ -1127,12 +1127,12 @@ enum GenericEnum<T> {
1127
1127
}
1128
1128
1129
1129
do {
1130
-
_ = GenericEnum.one(3, 4) // expected-error {{extra argument in call}}
1130
+
_ = GenericEnum.one(3, 4) // expected-error {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{23-23=(}} {{27-27=)}}
_ = GenericEnum.labeled(x: 3, 4) // expected-error {{enum case 'labeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{29-29=(}} {{34-34=)}}
1134
1134
_ = GenericEnum.labeled(x: (3, 4))
1135
-
_ = GenericEnum.labeled(3, 4) // expected-error {{extra argument in call}}
1135
+
_ = GenericEnum.labeled(3, 4) // expected-error {{enum case 'labeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{27-27=(}} {{31-31=)}}
_ = GenericEnum.one(a, b) // expected-error {{extra argument in call}}
1166
+
_ = GenericEnum.one(a, b) // expected-error {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{23-23=(}} {{27-27=)}}
1167
1167
_ = GenericEnum.one((a, b))
1168
1168
_ = GenericEnum.one(c)
1169
1169
@@ -1199,7 +1199,7 @@ do {
1199
1199
var b = 4
1200
1200
var c = (a, b)
1201
1201
1202
-
_ = GenericEnum.one(a, b) // expected-error {{extra argument in call}}
1202
+
_ = GenericEnum.one(a, b) // expected-error {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} expected-note {{did you mean to pass a tuple?}} {{23-23=(}} {{27-27=)}}
1203
1203
_ = GenericEnum.one((a, b))
1204
1204
_ = GenericEnum.one(c)
1205
1205
@@ -1262,10 +1262,10 @@ do {
1262
1262
1263
1263
let sTwo = GenericConforms<(Double, Double)>()
1264
1264
1265
-
sTwo.requirement(3.0, 4.0) // expected-error {{instance method 'requirement' expects a single parameter of type '(Double, Double)'}} {{20-20=(}} {{28-28=)}}
1265
+
sTwo.requirement(3.0, 4.0) // expected-error {{instance method 'requirement' expects a single parameter of type 'GenericConforms<(Double, Double)>.Element' (aka '(Double, Double)')}} {{20-20=(}} {{28-28=)}}
1266
1266
sTwo.requirement((3.0, 4.0))
1267
1267
1268
-
sTwo.requirementLabeled(x: 3.0, 4.0) // expected-error {{instance method 'requirementLabeled' expects a single parameter of type '(Double, Double)'}}
1268
+
sTwo.requirementLabeled(x: 3.0, 4.0) // expected-error {{instance method 'requirementLabeled' expects a single parameter of type 'GenericConforms<(Double, Double)>.Element' (aka '(Double, Double)')}} {{29-29=(}} {{38-38=)}}
1269
1269
sTwo.requirementLabeled(x: (3.0, 4.0))
1270
1270
}
1271
1271
@@ -1289,7 +1289,7 @@ do {
1289
1289
1290
1290
let sTwo = GenericConforms<(Double, Double)>()
1291
1291
1292
-
sTwo.requirement(a, b) // expected-error {{instance method 'requirement' expects a single parameter of type '(Double, Double)'}} {{20-20=(}} {{24-24=)}}
1292
+
sTwo.requirement(a, b) // expected-error {{instance method 'requirement' expects a single parameter of type 'GenericConforms<(Double, Double)>.Element' (aka '(Double, Double)')}} {{20-20=(}} {{24-24=)}}
1293
1293
sTwo.requirement((a, b))
1294
1294
sTwo.requirement(d)
1295
1295
}
@@ -1314,7 +1314,7 @@ do {
1314
1314
1315
1315
var sTwo = GenericConforms<(Double, Double)>()
1316
1316
1317
-
sTwo.requirement(a, b) // expected-error {{instance method 'requirement' expects a single parameter of type '(Double, Double)'}} {{20-20=(}} {{24-24=)}}
1317
+
sTwo.requirement(a, b) // expected-error {{instance method 'requirement' expects a single parameter of type 'GenericConforms<(Double, Double)>.Element' (aka '(Double, Double)')}} {{20-20=(}} {{24-24=)}}
0 commit comments