mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
accept this refs inside anonymous classes in java 8 interfaces (IDEA-105892)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
interface Bazz {
|
||||
Bazz foo = <error descr="Cannot find symbol variable this">Bazz.this</error>;
|
||||
static void foo1() {
|
||||
Bazz foo = <error descr="'Bazz.this' cannot be referenced from a static context">Bazz.this</error>;
|
||||
}
|
||||
|
||||
Runnable bar = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bazz f = <error descr="Cannot find symbol variable this">Bazz.this</error>;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
default void foo() {
|
||||
Bazz foo = Bazz.this;
|
||||
Runnable r = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Bazz f = Bazz.this;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user