Files
kotlin/compiler/testData/codegen/box/jvmField/simpleMemberProperty.kt
2018-12-21 16:09:06 +01:00

22 lines
336 B
Kotlin
Vendored

// 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()
}