dc2226b42f
#KT-42118 fixed
33 lines
459 B
Kotlin
Vendored
33 lines
459 B
Kotlin
Vendored
// !LANGUAGE: +JvmFieldInInterface
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
// FILE: Test.java
|
|
|
|
public class Test {
|
|
public static String publicField() {
|
|
return Foo.o.getS() + Foo.k.getS();
|
|
}
|
|
}
|
|
|
|
// FILE: simple.kt
|
|
|
|
|
|
public class Bar(public val s: String)
|
|
|
|
interface Foo {
|
|
|
|
companion object {
|
|
@JvmField
|
|
val o = Bar("O")
|
|
|
|
@JvmField
|
|
val k = Bar("K")
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
return Test.publicField()
|
|
}
|