Skip to content

Commit 7c78ad2

Browse files
committed
Update default value of argument
1 parent c480432 commit 7c78ad2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,9 +2649,7 @@ TypeCheckFunctionBodyRequest::evaluate(Evaluator &evaluator,
26492649
if (Type builderType = getResultBuilderType(func)) {
26502650
if (auto optBody =
26512651
TypeChecker::applyResultBuilderBodyTransform(
2652-
func, builderType,
2653-
/*ClosuresInResultBuilderDontParticipateInInference=*/
2654-
false)) {
2652+
func, builderType)) {
26552653
if (!*optBody)
26562654
return errorBody();
26572655

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ void typeCheckASTNode(ASTNode &node, DeclContext *DC,
459459
/// value if an error occurred while type checking the transformed body.
460460
Optional<BraceStmt *> applyResultBuilderBodyTransform(
461461
FuncDecl *func, Type builderType,
462-
bool ClosuresInResultBuilderDontParticipateInInference = true);
462+
bool ClosuresInResultBuilderDontParticipateInInference = false);
463463

464464
/// Find the return statements within the body of the given function.
465465
std::vector<ReturnStmt *> findReturnStatements(AnyFunctionRef fn);

0 commit comments

Comments
 (0)