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
returnE_32551313.Left("",Foo_32551313()) // expected-error {{extra argument in call}}
107
+
returnE_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
letd=(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
vard=(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
lets=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
letd=(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
vard=(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
vars=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
letd=(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
vard=(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=)}}
933
933
_ =GenericInit((3,4))
934
934
935
-
_ =GenericInitLabeled(x:3,4) // expected-error {{extra argument in call}}
935
+
_ =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
letb=4
968
968
letc=(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
varb=4
1004
1004
varc=(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
lets1a=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
lets2=GenericSubscriptTwo<Double>()
@@ -1072,7 +1072,7 @@ do {
1072
1072
_ =s3[(3.0,4.0)]
1073
1073
1074
1074
lets3a=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=)}}
1131
1131
_ =GenericEnum.one((3,4))
1132
1132
1133
-
_ =GenericEnum.labeled(x:3,4) // expected-error {{extra argument in call}}
1133
+
_ =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=)}}
1136
1136
_ =GenericEnum.labeled((3,4)) // expected-error {{missing argument label 'x:' in call}}
1137
1137
1138
1138
_ =GenericEnum.two(3,4)
@@ -1163,7 +1163,7 @@ do {
1163
1163
letb=4
1164
1164
letc=(a, b)
1165
1165
1166
-
_ =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
varb=4
1200
1200
varc=(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
letsTwo=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
letsTwo=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
varsTwo=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