Skip to content

Commit befe4bd

Browse files
authored
Revert "[CSGen] Don't apply one-way requirement to typed patterns"
1 parent ab594dd commit befe4bd

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ namespace {
22462246
Type subPatternType = getTypeForPattern(
22472247
subPattern,
22482248
locator.withPathElement(LocatorPathElt::PatternMatch(subPattern)),
2249-
openedType, /*bindPatternVarsOneWay*/false);
2249+
openedType, bindPatternVarsOneWay);
22502250

22512251
if (!subPatternType)
22522252
return Type();

validation-test/Sema/type_checker_crashers_fixed/sr14893.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)