mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
21 lines
307 B
Java
21 lines
307 B
Java
interface I {
|
|
String getValue();
|
|
}
|
|
|
|
interface J extends I {
|
|
|
|
}
|
|
|
|
class X implements I {
|
|
public String getValue() {return "X";}
|
|
}
|
|
|
|
class Y implements J {
|
|
public String getValue() {return <flown11>"Y";}
|
|
}
|
|
|
|
class Test {
|
|
void foo(J j) {
|
|
String <caret>s = <flown1>j.getValue();
|
|
}
|
|
} |