Skip to content

Commit a7c66ee

Browse files
committed
[ConstraintSystem] Result builder transformed closures always participate in inference
1 parent 9774e98 commit a7c66ee

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
@@ -6930,6 +6930,9 @@ bool ConstraintSystem::isArgumentGenericFunction(Type argType, Expr *argExpr) {
69306930
}
69316931

69326932
bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
6933+
if (getAppliedResultBuilderTransform(closure))
6934+
return true;
6935+
69336936
if (closure->hasSingleExpressionBody())
69346937
return true;
69356938

0 commit comments

Comments
 (0)