mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
qualify this with containing class (IDEA-49251)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Qualify this expression with 'Test'" "true"
|
||||
class Test {
|
||||
void foo(Test t){}
|
||||
class Foo {
|
||||
Foo() {
|
||||
foo(Test.this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Qualify this expression with 'Test.Foo'" "true"
|
||||
class Test {
|
||||
void foo(Foo m) {
|
||||
}
|
||||
|
||||
|
||||
class Foo {
|
||||
void bar() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
foo(Foo.this);
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Qualify this expression with 'Test'" "true"
|
||||
class Test {
|
||||
void foo(Test t){}
|
||||
class Foo {
|
||||
Foo() {
|
||||
foo(thi<caret>s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Qualify this expression with 'Test'" "false"
|
||||
class Test {
|
||||
void foo(Test t){}
|
||||
static class Foo {
|
||||
Foo() {
|
||||
foo(thi<caret>s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Qualify this expression with 'Test'" "false"
|
||||
class Test {
|
||||
void foo(String t){}
|
||||
static class Foo {
|
||||
Foo() {
|
||||
foo(thi<caret>s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// "Qualify this expression with 'Test.Foo'" "false"
|
||||
class Test {
|
||||
public void main() {
|
||||
new Foo() {
|
||||
void bar() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
foo(th<caret>is);
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}.toString();
|
||||
}
|
||||
|
||||
void foo(Foo m) {
|
||||
}
|
||||
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Qualify this expression with 'Test.Foo'" "true"
|
||||
class Test {
|
||||
void foo(Foo m) {
|
||||
}
|
||||
|
||||
|
||||
class Foo {
|
||||
void bar() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
foo(th<caret>is);
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user