mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
19 lines
296 B
Kotlin
Vendored
19 lines
296 B
Kotlin
Vendored
// 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()
|
|
}
|