Skip to content

Commit 3163ed5

Browse files
authored
Merge pull request #38519 from apple/revert-38346-rdar-80271666-5.5
Revert "[5.5][CSGen] Don't apply one-way requirement to typed patterns"
2 parents 0d3e6f3 + c356293 commit 3163ed5

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
@@ -2245,7 +2245,7 @@ namespace {
22452245
Type subPatternType = getTypeForPattern(
22462246
subPattern,
22472247
locator.withPathElement(LocatorPathElt::PatternMatch(subPattern)),
2248-
openedType, /*bindPatternVarsOneWay*/false);
2248+
openedType, bindPatternVarsOneWay);
22492249

22502250
if (!subPatternType)
22512251
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)