I get that const variables inside classes must be static, because the Compiler cant access them at Compile time. But why can I then have a non static Method inside this class which contains a non static const, shouldn´t be then also nonaccessible at Compile time?
class ImmutablePoint {
void someNonStaticMethod(){
const v = 3;
}
}