Skip to content

Commit c356293

Browse files
authored
Revert "[5.5][CSGen] Don't apply one-way requirement to typed patterns"
1 parent 7a6b8d1 commit c356293

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)