We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3022812 commit ff3b938Copy full SHA for ff3b938
lib/Sema/TypeCheckStmt.cpp
@@ -2171,7 +2171,7 @@ bool TypeCheckASTNodeAtLocRequest::evaluate(
2171
if (auto Init = PBD->getInit(i)) {
2172
if (!PBD->isInitializerChecked(i)) {
2173
typeCheckPatternBinding(PBD, i,
2174
- /*LeaveClosureBodyUnchecked=*/true);
+ /*LeaveClosureBodyUnchecked=*/false);
2175
// Retrieve the accessor's body to trigger RecontextualizeClosures
2176
// This is important to get the correct USR of variables defined
2177
// in closures initializing lazy variables.
0 commit comments