Kotlin will translate a Java class with getters and setters
class Foo {
private int a = 23;
public int getA() {
return a;
}
public void setA(int a) {
this.a = a;
}
}
so that you can just use
foo.a
foo.a = 13
in your Kotlin code.
However, it will not do this if the Java field is declared as static.
static int a = 23;
Why is this? Is it a technical limitation?