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}}
619
619
620
+
S<Int,Bool>().method((5,true,6))
621
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
622
+
620
623
S<Int,Bool>().property((5,true))
621
624
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
622
-
// expected-error@-2 {{cannot pass value pack expansion to non-pack parameter of type 'repeat each T'}}
625
+
626
+
S<Int,Bool>().property((5,true,6))
627
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
628
+
629
+
func foo<eachU>(u:repeateachU){
630
+
S<repeateachU>().property((3,4,5))
631
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 1 separate arguments; remove extra parentheses to change tuple into separate arguments}}
632
+
633
+
// FIXME: The count of 'repeat each U' is not statically known, but error suggests that it is 1.
634
+
S<repeateachU>().method((3,4,5))
635
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 1 separate arguments; remove extra parentheses to change tuple into separate arguments}}
636
+
// FIXME: Bad diagnostics
637
+
// expected-error@-3 {{pack expansion requires that 'each U' and '_' have the same shape}}
638
+
// expected-error@-4 {{pack expansion requires that 'each U' and '_.RawValue' have the same shape}}
639
+
640
+
// FIXME: The count of '(Int, Int), repeat each U' is not statically known, but error suggests that it is 2.
641
+
S<(Int,Int),repeateachU>().method((3,4))
642
+
// expected-error@-1 {{value pack expansion at parameter #0 expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments}}
643
+
// FIXME: Duplicate diagnostics
644
+
// expected-error@-3 2 {{pack expansion requires that 'each U' and '' have the same shape}}
645
+
646
+
// FIXME: The count of '(Int, Int), repeat each U' is not statically known, but error suggests that it is 2.
647
+
S<(Int,Int),repeateachU>().property((3,4))
648
+
// 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