mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Don’t check hasSingleExpressionBody in ConstraintSystem::participatesInInference
It looks like we no longer need this check.
This commit is contained in:
@@ -7311,9 +7311,6 @@ bool ConstraintSystem::participatesInInference(ClosureExpr *closure) const {
|
||||
if (getAppliedResultBuilderTransform(closure))
|
||||
return true;
|
||||
|
||||
if (closure->hasSingleExpressionBody())
|
||||
return true;
|
||||
|
||||
if (Options.contains(ConstraintSystemFlags::LeaveClosureBodyUnchecked))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user