Files
kotlin-fork/js/js.translator/testData/expression/try/cases/tryCatchThrowable.kt
T
2014-10-09 19:31:51 +04:00

15 lines
204 B
Kotlin
Vendored

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