20 lines
284 B
Kotlin
Vendored
20 lines
284 B
Kotlin
Vendored
// !LANGUAGE: +JvmFieldInInterface
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
class Bar(val value: String)
|
|
|
|
interface Foo {
|
|
|
|
companion object {
|
|
@JvmField
|
|
val z = Bar("OK")
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
val field = Foo.Companion::z
|
|
return field.get().value
|
|
}
|