move instance method when ref was inside anonymous inheritor (EA-87325 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText)

This commit is contained in:
Anna Kozlova
2016-08-26 21:01:25 +03:00
parent 61fc2a8ec1
commit b3dcbeb29a
5 changed files with 54 additions and 2 deletions
@@ -0,0 +1,20 @@
class A<T> {
class B {
private String foo;
public void run() {
new B() {
@Override
public void run() {
moo(A.this);
}
};
}
void m<caret>oo(A a) {
System.out.println(foo);
}
}
}