mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
isLocalClass should work for nested local classes (IDEA-156777)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
class Program {
|
||||
public static void main(String[] args) {
|
||||
int[] arr = {1,2,3};
|
||||
final int x = arr.length;
|
||||
{
|
||||
class C {
|
||||
class D {
|
||||
int bar() {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new Runnable() {
|
||||
class D {
|
||||
int bar() {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
||||
public void run() {}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user