|
Blocks :
|
|
|
CSR :
|
test cases, provided by Tagir:
class X {
public static void main(String[] args) {
int x = 2;
record Y() {
void test() {
System.out.println(x);
}
}
new Y().test();
}
}
class X {
public static void main(String[] args) {
int x = 2;
record Y() {
static final int y = x;
}
new Y();
}
}
|