grandstaish
03/16/2016, 12:51 AMobject MyObject {
val x: Int = 0
}
produces:
public final class MyObject
{
private static final int x = 0;
public static final MyObject INSTANCE;
static
{
new MyObject();
}
private MyObject()
{
INSTANCE = (MyObject)this;
}
public final int getX()
{
return x;
}
}
Note the private static final int x = 0;
and then the getter method