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 {{enum case 'Left' expects a single parameter of type 'L' [with L = (String, Foo_32551313?)]}} {{28-28=(}} {{46-46=)}}
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 {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{11-11=(}} {{15-15=)}}
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 {{global function 'genericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{20-20=(}} {{25-25=)}}
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 {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{11-11=(}} {{15-15=)}}
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 {{global function 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{11-11=(}} {{15-15=)}}
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 {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{13-13=(}} {{17-17=)}}
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 {{instance method 'genericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{22-22=(}} {{27-27=)}}
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 {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{13-13=(}} {{17-17=)}}
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 {{instance method 'generic' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{13-13=(}} {{17-17=)}}
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 {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{21-21=(}} {{25-25=)}}
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 {{instance method 'mutatingGenericLabeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{30-30=(}} {{35-35=)}}
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 {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{21-21=(}} {{25-25=)}}
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 {{instance method 'mutatingGeneric' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{21-21=(}} {{25-25=)}}
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 {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} {{19-19=(}} {{23-23=)}}
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 {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} {{28-28=(}} {{33-33=)}}
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 {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} {{19-19=(}} {{23-23=)}}
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 {{initializer expects a single parameter of type 'T' [with T = (Int, Int)]}} {{19-19=(}} {{23-23=)}}
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
@@ -1127,12 +1127,12 @@ enum GenericEnum<T> {
1127
1127
}
1128
1128
1129
1129
do{
1130
-
_ =GenericEnum.one(3,4) // expected-error {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{23-23=(}} {{27-27=)}}
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 {{enum case 'labeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{29-29=(}} {{34-34=)}}
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 {{enum case 'labeled' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{27-27=(}} {{31-31=)}}
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 {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{23-23=(}} {{27-27=)}}
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 {{enum case 'one' expects a single parameter of type 'T' [with T = (Int, Int)]}} {{23-23=(}} {{27-27=)}}
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=)}}
0 commit comments