Skip to content

Commit a7824b2

Browse files
authored
Revert "[CSSimplify] Disfavor choices that have injected callAsFunction"
1 parent 0597b8d commit a7824b2

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
@@ -11445,7 +11445,6 @@ ConstraintSystem::simplifyApplicableFnConstraint(
1144511445
FunctionType::get(trailingClosureTypes, callAsFunctionResultTy,
1144611446
FunctionType::ExtInfo());
1144711447

11448-
increaseScore(SK_DisfavoredOverload);
1144911448
// Form an unsolved constraint to apply trailing closures to a
1145011449
// callable type produced by `.init`. This constraint would become
1145111450
// 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)