mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
relevant method chain completion: do not suggest casts for introduced variable (EA-108521)
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
class Main {
|
||||
void m() {
|
||||
D d = <caret>
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
class AImpl extends A {
|
||||
B getB() {
|
||||
return new B();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
C getC() {
|
||||
return new C();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
D getD() {
|
||||
return new D();
|
||||
}
|
||||
}
|
||||
|
||||
class D {
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
class Main {
|
||||
void m(A a) {
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
((AImpl) a).getB().getC().getD();
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
class AImpl extends A {
|
||||
B getB() {
|
||||
return new B();
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
C getC() {
|
||||
return new C();
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
D getD() {
|
||||
return new D();
|
||||
}
|
||||
}
|
||||
|
||||
class D {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user