why is:
class A {
int a;
void foo() {
int a = a;
}
}
not allowed, but
class A {
int a;
void foo() {
int b = a;
int a = b;
}
}
is? Can’t java recognize that the RHS for the identifier executes in a different environment than after the assignment takes place?