Files
kotlin-fork/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt
T
2018-04-19 13:17:28 +03:00

17 lines
263 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113
package foo
fun box(): String {
var s: String = ""
try {
throw Exception()
} catch (e: Throwable) {
s = "Throwable"
}
assertEquals("Throwable", s)
return "OK"
}