Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/kt46568.kt
T
2021-05-11 16:26:04 +02:00

19 lines
271 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
abstract class Foo {
companion object {
@JvmStatic
fun bar(): Nothing = TODO()
}
}
fun box(): String {
try {
Foo.bar()
} catch (e: Throwable) {
return "OK"
}
return "FAIL"
}