Skip to content

Commit 49c3668

Browse files
committed
[BuilderTransform] Don't skip multi-statement closures during pre-check
Each of the elements in the result builder has to be fully pre-checked now that multi-statement inference has been enabled.
1 parent d5a82c5 commit 49c3668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/BuilderTransform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ class PreCheckResultBuilderApplication : public ASTWalker {
19331933

19341934
HasError |= ConstraintSystem::preCheckExpression(
19351935
E, DC, /*replaceInvalidRefsWithErrors=*/true,
1936-
/*leaveClosureBodiesUnchecked=*/true);
1936+
/*leaveClosureBodiesUnchecked=*/false);
19371937

19381938
HasError |= transaction.hasErrors();
19391939

0 commit comments

Comments
 (0)