inline to anonymous: allow to inline from library (IDEA-162893)

This commit is contained in:
Anna.Kozlova
2016-10-20 19:04:25 +02:00
parent 6d286a5ec7
commit 94105ecee4
9 changed files with 88 additions and 26 deletions
@@ -0,0 +1,7 @@
class Test {
{
Object p = new Object() {
public void foo() {}
};
}
}
@@ -0,0 +1,6 @@
import p.P;
class Test {
{
P p = new <caret>P();
}
}
@@ -0,0 +1,6 @@
package p;
public class P {
public P() {
}
public void foo() {}
}