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 {
996
996
997
997
SolutionApplicationTargetsKey (
998
998
const PatternBindingDecl *patternBinding, unsigned index) {
999
- kind = Kind::stmt ;
999
+ kind = Kind::patternBindingEntry ;
1000
1000
storage.patternBindingEntry .patternBinding = patternBinding;
1001
1001
storage.patternBindingEntry .index = index;
1002
1002
}
Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ func testDiags() {
111
111
y + 25
112
112
}
113
113
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
+
114
121
// Statements unsupported by the particular builder.
115
122
tuplifyWithoutIf ( true ) {
116
123
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