Files
kotlin-fork/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt
T

16 lines
237 B
Kotlin
Vendored

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