Skip to content

Commit f2e3d0b

Browse files
committed
[SILGen] add a crasher in Type Lowering
1 parent d43b038 commit f2e3d0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: not --crash %target-swift-frontend %s -emit-silgen
2+
3+
let a: () -> Int? = { return nil }
4+
a as? Int

0 commit comments

Comments
 (0)