Skip to content

Commit 02c59b3

Browse files
committed
[ConstraintSystem] Pack element type variables can bind to noescape.
1 parent 56a24c7 commit 02c59b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6141,7 +6141,9 @@ class OpenPackElementType {
61416141
// element.
61426142
assert(elementEnv);
61436143

6144-
auto *elementType = cs.createTypeVariable(locator, TVO_CanBindToHole);
6144+
auto *elementType = cs.createTypeVariable(locator,
6145+
TVO_CanBindToHole |
6146+
TVO_CanBindToNoEscape);
61456147
auto elementLoc = cs.getConstraintLocator(locator,
61466148
LocatorPathElt::OpenedPackElement(elementEnv));
61476149

0 commit comments

Comments
 (0)