Files
kotlin-fork/backend.native/tests/codegen/try/catch8.kt
T
2017-10-20 18:25:05 +03:00

14 lines
259 B
Kotlin

package codegen.`try`.catch8
import kotlin.test.*
@Test fun runTest() {
try {
throw Error("Error happens")
} catch (e: Throwable) {
val message = e.message
if (message != null) {
println(message)
}
}
}