IDEA-181657 Completion items with type casts derived from control flow are not suggested if there are several nested checks from different paths of hierarchy

This commit is contained in:
peter
2017-11-08 10:01:07 +01:00
parent 6431fc6a55
commit fbbb381483
12 changed files with 160 additions and 107 deletions
@@ -0,0 +1,21 @@
interface Common {
String moo();
}
interface I1 extends Common {
String foo();
}
interface I2 extends Common {
String boo();
}
public class Main {
public static void test(Common param) {
if (param instanceof I1) {
if (param instanceof I2) {
((I1) param).foo()<caret>
}
}
}
}