mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-25 13:08:58 +08:00
0b3f0ff85e
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class name. From-SVN: r32408
30 lines
432 B
Java
30 lines
432 B
Java
interface I
|
|
{
|
|
int i = 1, ii = PR162.out ("ii", 2);
|
|
}
|
|
|
|
interface J extends I
|
|
{
|
|
int j = PR162.out ("j", 3), jj = PR162.out ("jj", 4);
|
|
}
|
|
|
|
interface K extends J
|
|
{
|
|
int k = PR162.out ("k", 5);
|
|
}
|
|
|
|
public class PR162
|
|
{
|
|
public static void main (String[] args)
|
|
{
|
|
System.out.println (J.i);
|
|
System.out.println (K.j);
|
|
}
|
|
|
|
public static int out (String s, int i)
|
|
{
|
|
System.out.println (s + "=" + i);
|
|
return i;
|
|
}
|
|
}
|