File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 10
10
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=CLOSURE_NORETURN | %FileCheck %s --check-prefix=POINT_MEMBER
11
11
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=CLOSURE_FUNCBUILDER | %FileCheck %s --check-prefix=POINT_MEMBER
12
12
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=MULTICLOSURE_FUNCBUILDER | %FileCheck %s --check-prefix=POINT_MEMBER
13
+ // RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=MULTICLOSURE_FUNCBUILDER_ERROR | %FileCheck %s --check-prefix=POINT_MEMBER
14
+ // RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=MULTICLOSURE_FUNCBUILDER_FIXME | %FileCheck %s --check-prefix=NORESULTS
13
15
14
16
struct A {
15
17
func doAThings( ) -> A { return self }
@@ -145,3 +147,25 @@ CreateThings {
145
147
Thing { _ in }
146
148
}
147
149
150
+ // In multi-statement closure with unpropagated errors
151
+ CreateThings {
152
+ Thing { point in
153
+ print ( " hello " )
154
+ point. // ErrorExpr
155
+ point. #^MULTICLOSURE_FUNCBUILDER_ERROR^#
156
+ }
157
+ Thing { point in
158
+ print ( " hello " )
159
+ point. // ErrorExpr
160
+ }
161
+ }
162
+
163
+ // FIXME: No results in multi-statement closure with erroreous sibling function builder element
164
+ CreateThings {
165
+ Thing { point in
166
+ print ( " hello " )
167
+ point. #^MULTICLOSURE_FUNCBUILDER_FIXME^#
168
+ }
169
+ Thing. // ErrorExpr
170
+ }
171
+
You can’t perform that action at this time.
0 commit comments