mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
201 B
Swift
10 lines
201 B
Swift
// RUN: %target-swift-emit-silgen %s -verify
|
|
|
|
// Check that SILGen does not crash because of a parenthesized try expression
|
|
class Class {
|
|
var num: Int = 1
|
|
|
|
init() throws {}
|
|
}
|
|
_ = (try Class().num)
|