Files
kotlin-fork/js/js.translator/testData/expression/misc/cases/throwThrow.kt
T

16 lines
250 B
Kotlin
Vendored

package foo
fun test() {
throw throw Exception("catch me")
}
fun box(): String {
try {
test()
error("exception not thrown")
}
catch (e: Exception) {
assertEquals("catch me", e.message)
}
return "OK"
}