Skip to content

Commit 70deaa8

Browse files
committed
[QoI] Add a fixed crasher which triggers closure return diagnostics related to rdar://problem/33067102
1 parent 47d9de9 commit 70deaa8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: not %target-swift-frontend -swift-version 4 %s -typecheck
2+
3+
func flatterMap(_ records: [((Int))]) -> [Int] {
4+
records.flatMap { _ in return 1 } // expected-note {{}}
5+
}

0 commit comments

Comments
 (0)