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,21 @@
class A<T> {
void moo(B b) {
System.out.println(b.foo);
}
class B {
private String foo;
public void run() {
new B() {
@Override
public void run() {
A.this.moo(this);
}
};
}
}
}