File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1191,7 +1191,6 @@ void ConstraintSystem::shrink(Expr *expr) {
1191
1191
// let foo: [Array<Float>] = [[0], [1], [2]] as [Array]
1192
1192
// let foo: [Array<Float>] = [[0], [1], [2]] as [Array<_>]
1193
1193
/* unboundTyOpener*/ nullptr , /* placeholderHandler*/ nullptr ,
1194
- // FIXME: Open pack elements with a PackElementOf constraint.
1195
1194
/* packElementOpener*/ nullptr );
1196
1195
1197
1196
// Looks like coercion type is invalid, let's skip this sub-tree.
Original file line number Diff line number Diff line change @@ -1466,7 +1466,7 @@ TypeExpr *PreCheckExpression::simplifyNestedTypeExpr(UnresolvedDotExpr *UDE) {
1466
1466
// FIXME: Don't let placeholder types escape type resolution.
1467
1467
// For now, just return the placeholder type.
1468
1468
PlaceholderType::get,
1469
- // FIXME: Open pack elements with a PackElementOf constraint .
1469
+ // TypeExpr pack elements are opened in CSGen .
1470
1470
/* packElementOpener*/ nullptr );
1471
1471
1472
1472
if (BaseTy->mayHaveMembers ()) {
@@ -2221,7 +2221,7 @@ Expr *PreCheckExpression::simplifyTypeConstructionWithLiteralArg(Expr *E) {
2221
2221
// FIXME: Don't let placeholder types escape type resolution.
2222
2222
// For now, just return the placeholder type.
2223
2223
PlaceholderType::get,
2224
- // FIXME: Open pack elements with a PackElementOf constraint .
2224
+ // Pack elements for CoerceExprs are opened in CSGen .
2225
2225
/* packElementOpener*/ nullptr );
2226
2226
2227
2227
if (result->hasError ())
You can’t perform that action at this time.
0 commit comments