mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
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:
+21
@@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user