Last change
on this file was 1389, checked in by bird, 21 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:
309 bytes
|
Line | |
---|
1 | // Test for a verification regression.
|
---|
2 |
|
---|
3 | interface I { }
|
---|
4 | class D implements I { }
|
---|
5 | class E extends D { }
|
---|
6 |
|
---|
7 | public class verify
|
---|
8 | {
|
---|
9 | static void call(I v) { }
|
---|
10 |
|
---|
11 | static void doit (Object x)
|
---|
12 | {
|
---|
13 | call ((x instanceof I) ? (I) x : new E ());
|
---|
14 | }
|
---|
15 |
|
---|
16 | public static void main(String[] args)
|
---|
17 | {
|
---|
18 | doit(null);
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.