Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/extensionPropertyGetter.kt
T
Alexander Udalov 73aa465ee9 Add tests for issues fixed in JVM IR
Note that KT-30696 is fixed only in the single-module case, and KT-42012
is not fixed fully (see KT-44855).

 #KT-30041
 #KT-30629
 #KT-30696
 #KT-30933
 #KT-32351
 #KT-32749
 #KT-38849
 #KT-42012
 #KT-42990
 #KT-44234
 #KT-44529
 #KT-44631
 #KT-44647
2021-02-10 21:42:10 +01:00

24 lines
350 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// 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"
}