Files
kotlin-fork/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt
T
2018-09-12 09:49:25 +03:00

16 lines
238 B
Kotlin
Vendored

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