File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -724,20 +724,12 @@ class VarargTypeRepr final : public TypeRepr {
724
724
friend class TypeRepr ;
725
725
};
726
726
727
- // / A pack expansion 'T... ' with a pattern 'T'.
727
+ // / A pack expansion 'repeat T ' with a pattern 'T'.
728
728
// /
729
729
// / Can appear in the following positions:
730
730
// / - The type of a parameter declaration in a function declaration
731
731
// / - The type of a parameter in a function type
732
732
// / - The element of a tuple
733
- // /
734
- // / In the first two cases, it also spells an old-style variadic parameter
735
- // / desugaring to an array type. The two meanings are distinguished by the
736
- // / presence of at least one pack type parameter in the pack expansion
737
- // / pattern.
738
- // /
739
- // / In the third case, tuples cannot contain an old-style variadic element,
740
- // / so the pack expansion must be a real variadic pack expansion.
741
733
class PackExpansionTypeRepr final : public TypeRepr {
742
734
SourceLoc RepeatLoc;
743
735
TypeRepr *Pattern;
You can’t perform that action at this time.
0 commit comments