mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
16 lines
251 B
Kotlin
Vendored
16 lines
251 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.KClass
|
|
|
|
fun box(): String {
|
|
try {
|
|
String::class.java as KClass<String>
|
|
} catch (e: Exception) {
|
|
return "OK"
|
|
}
|
|
return "fail"
|
|
}
|