IDEA-177895 Completion items with type casts derived from control flow are not suggested for 'this'

This commit is contained in:
peter
2017-08-31 17:22:27 +02:00
parent ab4837ff9f
commit ee3d96da1a
4 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
public abstract class Super {
void foo() {
if (this instanceof Sub) {
this.subme<caret>
}
}
}
class Sub extends Zzza {
void subMethod() {}
}

View File

@@ -0,0 +1,15 @@
public abstract class Super {
void foo() {
if (this instanceof Sub) {
((Sub) this).subMethod();<caret>
}
}
}
class Sub extends Zzza {
void subMethod() {}
}