Files
kotlin-fork/compiler/testData/codegen/box/jvmField/simpleMemberProperty.kt
T
2018-06-09 19:15:38 +03:00

24 lines
441 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// 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()
}