File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ enum class ConstraintKind : char {
219
219
// / Both (first and second) pack types should have the same reduced shape.
220
220
SameShape,
221
221
// / The first type is a tuple containing a single unlabeled element that is a
222
- // / pack expansion. The second type is that pack expansion .
222
+ // / pack expansion. The second type is its pattern type .
223
223
MaterializePackExpansion,
224
224
};
225
225
Original file line number Diff line number Diff line change @@ -3823,14 +3823,17 @@ class ConstraintSystem {
3823
3823
// / Given a tuple with a single unlabeled element that represents a pack
3824
3824
// / expansion (either directly via \c PackExpansionType or through a type
3825
3825
// / variable constrained to a pack expansion), materialize the pack expansion
3826
- // / and return its pattern type as a result. The result is a type variable
3827
- // / because element of the tuple is not required to be resolved at the time of
3828
- // / the call and operation is delayed until the element is sufficiently
3829
- // / resolved (see \c simplifyMaterializePackExpansionConstraint)
3826
+ // / and return its pattern type as a result. The result is a type
3827
+ // / variable because element of the tuple is not required to be resolved at
3828
+ // / the time of the call and operation is delayed until the element is
3829
+ // / sufficiently resolved (see \c simplifyMaterializePackExpansionConstraint)
3830
3830
// /
3831
3831
// / \param tupleType A tuple with a single unlabeled element that represents a
3832
- // / pack expansion.
3832
+ // / pack expansion.
3833
3833
// / \param locator The locator.
3834
+ // /
3835
+ // / \returns A type variable type that represents the pattern type of the pack
3836
+ // / expansion.
3834
3837
TypeVariableType *
3835
3838
addMaterializePackExpansionConstraint (Type tupleType,
3836
3839
ConstraintLocatorBuilder locator);
You can’t perform that action at this time.
0 commit comments