Skip to content

Commit ff3b938

Browse files
committed
[IDE] Don't skip closure bodies when type checking pattern binding
1 parent 3022812 commit ff3b938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ bool TypeCheckASTNodeAtLocRequest::evaluate(
21712171
if (auto Init = PBD->getInit(i)) {
21722172
if (!PBD->isInitializerChecked(i)) {
21732173
typeCheckPatternBinding(PBD, i,
2174-
/*LeaveClosureBodyUnchecked=*/true);
2174+
/*LeaveClosureBodyUnchecked=*/false);
21752175
// Retrieve the accessor's body to trigger RecontextualizeClosures
21762176
// This is important to get the correct USR of variables defined
21772177
// in closures initializing lazy variables.

0 commit comments

Comments
 (0)