mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
19 lines
284 B
Kotlin
Vendored
19 lines
284 B
Kotlin
Vendored
// 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()
|
|
}
|