mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #62529 from xedin/fix-participates-in-inference
[ConstraintSystem] Result builder transformed closures always partici…
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user