Skip to content

Commit f02a5f3

Browse files
committed
[Test] Add a test case
1 parent 32a0c8e commit f02a5f3

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+
// RUN: not %target-swift-frontend -emit-silgen %s
2+
3+
struct S {
4+
func foo() -> Int! { return 0 }
5+
}
6+
7+
let s = S()
8+
let x: Int = (s.foo)()

0 commit comments

Comments
 (0)