Skip to content

Commit 850c280

Browse files
authored
Merge pull request #62529 from xedin/fix-participates-in-inference
[ConstraintSystem] Result builder transformed closures always partici…
2 parents db37be9 + a7c66ee commit 850c280

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6939,6 +6939,9 @@ bool ConstraintSystem::isArgumentGenericFunction(Type argType, Expr *argExpr) {
69396939
}
69406940

69416941
bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
6942+
if (getAppliedResultBuilderTransform(closure))
6943+
return true;
6944+
69426945
if (closure->hasSingleExpressionBody())
69436946
return true;
69446947

0 commit comments

Comments
 (0)