Skip to content

Commit c09047f

Browse files
authored
Merge pull request #73332 from saehejkang/silgen-test-for-parenthesized-try-expression
[SILGen]: Add test for parenthesized try expression
2 parents 74ed041 + 33c666a commit c09047f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %target-swift-emit-silgen %s -verify
2+
3+
// Check that SILGen does not crash because of a parenthesized try expression
4+
class Class {
5+
var num: Int = 1
6+
7+
init() throws {}
8+
}
9+
_ = (try Class().num)

0 commit comments

Comments
 (0)