Files
kotlin-fork/compiler/testData/codegen/box/jvmField/simpleMemberProperty.kt
T
2019-11-19 11:00:09 +03:00

23 lines
366 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: Test.java
public class Test {
public static String invokeMethodWithPublicField() {
C c = new C();
return c.foo;
}
}
// FILE: simple.kt
class C {
@JvmField public val foo: String = "OK"
}
fun box(): String {
return Test.invokeMethodWithPublicField()
}