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 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
632
+
633
+
S<Int,Bool>().method((5,true,6))
634
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
635
+
636
+
S<Int,Bool>().property((5,true))
637
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
638
+
639
+
S<Int,Bool>().property((5,true,6))
640
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
641
+
642
+
func foo<eachU>(u:repeateachU){
643
+
S<repeateachU>().property((3,4,5))
644
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 1 separate arguments; remove extra parentheses to change tuple into separate arguments}}
645
+
646
+
// FIXME: The count of 'repeat each U' is not statically known, but error suggests that it is 1.
647
+
S<repeateachU>().method((3,4,5))
648
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 1 separate arguments; remove extra parentheses to change tuple into separate arguments}}
649
+
// FIXME: Bad diagnostics
650
+
// expected-error@-3 {{pack expansion requires that 'each U' and '_' have the same shape}}
651
+
// expected-error@-4 {{pack expansion requires that 'each U' and '_.RawValue' have the same shape}}
652
+
653
+
// FIXME: The count of '(Int, Int), repeat each U' is not statically known, but error suggests that it is 2.
654
+
S<(Int,Int),repeateachU>().method((3,4))
655
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
656
+
// FIXME: Duplicate diagnostics
657
+
// expected-error@-3 2 {{pack expansion requires that 'each U' and '' have the same shape}}
658
+
659
+
// FIXME: The count of '(Int, Int), repeat each U' is not statically known, but error suggests that it is 2.
660
+
S<(Int,Int),repeateachU>().property((3,4))
661
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
0 commit comments