File tree Expand file tree Collapse file tree 3 files changed +0
-116
lines changed Expand file tree Collapse file tree 3 files changed +0
-116
lines changed Original file line number Diff line number Diff line change @@ -1094,13 +1094,6 @@ bool BindingSet::favoredOverConjunction(Constraint *conjunction) const {
1094
1094
if (locator->directlyAt <ClosureExpr>()) {
1095
1095
auto *closure = castToExpr<ClosureExpr>(locator->getAnchor ());
1096
1096
1097
- // If there are no bindings for the closure yet we cannot prioritize
1098
- // it because that runs into risk of missing a result builder transform.
1099
- if (TypeVar->getImpl ().isClosureType ()) {
1100
- if (Bindings.empty ())
1101
- return false ;
1102
- }
1103
-
1104
1097
if (auto transform = CS.getAppliedResultBuilderTransform (closure)) {
1105
1098
// Conjunctions that represent closures with result builder transformed
1106
1099
// bodies could be attempted right after their resolution if they meet
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -694,27 +694,3 @@ func test_recursive_var_reference_in_multistatement_closure() {
694
694
}
695
695
}
696
696
}
697
-
698
- // https://github.com/apple/swift/issues/67363
699
- func test_result_builder_in_member_chaining( ) {
700
- @resultBuilder
701
- struct Builder {
702
- static func buildBlock< T> ( _: T ) -> Int { 42 }
703
- }
704
-
705
- struct Test {
706
- static func test< T> ( fn: ( ) -> T ) -> T {
707
- fn ( )
708
- }
709
-
710
- func builder( @Builder _: ( ) -> Int ) { }
711
- }
712
-
713
- Test . test {
714
- let test = Test ( )
715
- return test
716
- } . builder { // Ok
717
- let result = " "
718
- result
719
- }
720
- }
You can’t perform that action at this time.
0 commit comments