mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
IDEA-177895 Completion items with type casts derived from control flow are not suggested for 'this'
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
public abstract class Super {
|
||||
|
||||
void foo() {
|
||||
if (this instanceof Sub) {
|
||||
this.subme<caret>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
class Sub extends Zzza {
|
||||
void subMethod() {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
public abstract class Super {
|
||||
|
||||
void foo() {
|
||||
if (this instanceof Sub) {
|
||||
((Sub) this).subMethod();<caret>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
class Sub extends Zzza {
|
||||
void subMethod() {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user