mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
21 lines
315 B
Java
21 lines
315 B
Java
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>
|
|
}
|
|
}
|
|
}
|
|
} |