Skip to content

Commit 62fa71d

Browse files
committed
Merge pull request #1344 from dduan/0038
[SILGen] add a crasher in Type Lowering
2 parents a94e91f + f2e3d0b commit 62fa71d

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)