publicField -> JvmField
Effectively drop publicField and introduce JvmField (which has the same effect for now) Implement frontend checks for @JvmField Replace publicField -> JvmField in test data
This commit is contained in:
committed by
Michael Bogdanov
parent
bfaf806f47
commit
6cf9bfdb70
@@ -0,0 +1,6 @@
|
||||
public class Test {
|
||||
public static String invokeMethodWithPublicField() {
|
||||
C c = new C();
|
||||
return c.foo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class C {
|
||||
@JvmField private val foo: String = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test.invokeMethodWithPublicField()
|
||||
}
|
||||
Reference in New Issue
Block a user