mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline method: ensure this qualifier inside inheritor in some nested class (IDEA-194889)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
abstract class Test {
|
||||
void g() {
|
||||
new Object() {
|
||||
void foo() {
|
||||
Test.this.foo();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
class Test2 extends Test {
|
||||
|
||||
{
|
||||
<caret>g();
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
abstract class Test {
|
||||
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
class Test2 extends Test {
|
||||
|
||||
{
|
||||
new Object() {
|
||||
void foo() {
|
||||
Test2.this.foo();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user