Skip to content

Commit 2cf7859

Browse files
authored
Revert "[5.7][CSSimplify] Disfavor choices that have injected callAsFunction"
1 parent 3f7d1b1 commit 2cf7859

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11452,7 +11452,6 @@ ConstraintSystem::simplifyApplicableFnConstraint(
1145211452
FunctionType::get(trailingClosureTypes, callAsFunctionResultTy,
1145311453
FunctionType::ExtInfo());
1145411454

11455-
increaseScore(SK_DisfavoredOverload);
1145611455
// Form an unsolved constraint to apply trailing closures to a
1145711456
// callable type produced by `.init`. This constraint would become
1145811457
// active when `callableType` is bound.

test/Constraints/result_builder_callAsFunction.swift

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)