aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/iface.java
blob: 6a57fcf4bf7c6681b11957e6b73e5c7076722a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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 ();
  }
}