Files
kotlin/compiler/testData/codegen/box/jvmField/constructorProperty.kt
2016-11-09 21:41:12 +03:00

23 lines
396 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// FILE: Test.java
public class Test {
public static String invokeMethodWithPublicField() {
C c = new C("OK");
return c.foo;
}
}
// FILE: simple.kt
class C(@JvmField val foo: String) {
}
fun box(): String {
return Test.invokeMethodWithPublicField()
}