Merge pull request #62529 from xedin/fix-participates-in-inference

[ConstraintSystem] Result builder transformed closures always partici…
This commit is contained in:
Pavel Yaskevich
2022-12-13 12:46:10 -05:00
committed by GitHub

View File

@@ -6939,6 +6939,9 @@ bool ConstraintSystem::isArgumentGenericFunction(Type argType, Expr *argExpr) {
}
bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
if (getAppliedResultBuilderTransform(closure))
return true;
if (closure->hasSingleExpressionBody())
return true;