mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +07:00
21 lines
303 B
Java
21 lines
303 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) {
|
|
param.<caret>
|
|
}
|
|
}
|
|
}
|
|
} |