Skip to content

Commit d7f41c8

Browse files
committed
[Variadic Generics] require pack ident type within a pack expansion to form a pack reference
1 parent fa1f536 commit d7f41c8

File tree

4 files changed

+584
-594
lines changed

4 files changed

+584
-594
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5208,6 +5208,9 @@ ERROR(pack_reference_outside_expansion,none,
52085208
ERROR(each_non_pack,none,
52095209
"'each' cannot be applied to non-pack type %0",
52105210
(Type))
5211+
ERROR(pack_expansion_missing_pack_reference,none,
5212+
"pack expansion %0 must specify a pack reference",
5213+
(TypeRepr*))
52115214
ERROR(tuple_duplicate_label,none,
52125215
"cannot create a tuple with a duplicate element label", ())
52135216
ERROR(multiple_ellipsis_in_tuple,none,

0 commit comments

Comments
 (0)