Skip to content

Commit 5936b7b

Browse files
committed
Add test that started crashing with my initial rework of closure discriminators.
Thanks to Alex Hoppen for providing this test!
1 parent 0868889 commit 5936b7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
func foo(array: [Int]) {
2+
_ = array.map { (value) -> Int in
3+
// RUN: %sourcekitd-test -req=complete -pos=%(line+1):20 %s -- %s == -req=complete -pos=%(line+2):16 %s -- %s
4+
let decoded = 42
5+
return decoded
6+
}
7+
}
8+

0 commit comments

Comments
 (0)