|
Last change
on this file since 1394 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
304 bytes
|
| Line | |
|---|
| 1 | // Test for searching through interface extension.
|
|---|
| 2 |
|
|---|
| 3 | interface basei
|
|---|
| 4 | {
|
|---|
| 5 | public int method ();
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | interface basei2
|
|---|
| 9 | {
|
|---|
| 10 | public int confuse ();
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | interface derivedi extends basei, basei2
|
|---|
| 14 | {
|
|---|
| 15 | public void nothing ();
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | public class iface
|
|---|
| 19 | {
|
|---|
| 20 | public int try_it (derivedi x)
|
|---|
| 21 | {
|
|---|
| 22 | return x.method ();
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.