Skip to content

Commit fc41aa9

Browse files
authored
Merge pull request #38520 from apple/revert-38320-rdar-80271666
Revert "[CSGen] Don't apply one-way requirement to typed patterns"
2 parents b9cc312 + befe4bd commit fc41aa9

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)