File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -996,7 +996,7 @@ class SolutionApplicationTargetsKey {
996996
997997 SolutionApplicationTargetsKey (
998998 const PatternBindingDecl *patternBinding, unsigned index) {
999- kind = Kind::stmt ;
999+ kind = Kind::patternBindingEntry ;
10001000 storage.patternBindingEntry .patternBinding = patternBinding;
10011001 storage.patternBindingEntry .index = index;
10021002 }
Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ func testDiags() {
111111 y + 25
112112 }
113113
114+ tuplify ( true ) { _ in
115+ 0
116+ let x : Int = 0 , y : String = " " // Multiple initialized pattern bindings are okay
117+ x + 1
118+ y
119+ }
120+
114121 // Statements unsupported by the particular builder.
115122 tuplifyWithoutIf ( true ) {
116123 if $0 { // expected-error{{closure containing control flow statement cannot be used with result builder 'TupleBuilderWithoutIf'}}
You can’t perform that action at this time.
0 commit comments