mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
23 lines
325 B
Kotlin
Vendored
23 lines
325 B
Kotlin
Vendored
// !LANGUAGE: +JvmFieldInInterface
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
// FILE: Foo.kt
|
|
|
|
public class Bar(public val value: String)
|
|
|
|
interface Foo {
|
|
companion object {
|
|
@JvmField
|
|
val FOO = Bar("OK")
|
|
}
|
|
}
|
|
|
|
|
|
// FILE: bar.kt
|
|
|
|
fun box(): String {
|
|
return Foo.FOO.value
|
|
}
|