mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 13:30:37 +08:00
25 lines
304 B
Java
25 lines
304 B
Java
|
// Test for searching through interface extension.
|
||
|
|
||
|
interface basei
|
||
|
{
|
||
|
public int method ();
|
||
|
}
|
||
|
|
||
|
interface basei2
|
||
|
{
|
||
|
public int confuse ();
|
||
|
}
|
||
|
|
||
|
interface derivedi extends basei, basei2
|
||
|
{
|
||
|
public void nothing ();
|
||
|
}
|
||
|
|
||
|
public class iface
|
||
|
{
|
||
|
public int try_it (derivedi x)
|
||
|
{
|
||
|
return x.method ();
|
||
|
}
|
||
|
}
|