blob: 71c72b2d4eca81db7227ab06d17f36fb8887b05c [file]
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// WITH_STDLIB
// KT-42990
object O {
val todo: String = TODO()
fun test(): Int = Bar(todo.bar).result
val String.bar: Int
@JvmStatic
get() = 42
}
class Bar(val result: Int)
fun box(): String = try {
O.test()
"Fail"
} catch (e: NotImplementedError) {
"OK"
}