Files
kotlin-fork/js/js.translator/testData/box/expression/cast/checkThrowCCE.kt
T
2019-12-06 05:37:09 +03:00

15 lines
263 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1365
package foo
import kotlin.reflect.*
fun box(): String {
try {
"fail".unsafeCast<KClass<*>>().js
return "fail try"
} catch (cce: ClassCastException) {
return "OK"
}
return "fail common"
}