|
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:
326 bytes
|
| Line | |
|---|
| 1 | // It is legal to reference "this" from an enclosing type, or an instance
|
|---|
| 2 | // field from an enclosing type, in a super constructor call.
|
|---|
| 3 |
|
|---|
| 4 | public class SuperConstr
|
|---|
| 5 | {
|
|---|
| 6 | SuperConstr (Object x, Outer y) {}
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | class Outer
|
|---|
| 10 | {
|
|---|
| 11 | Object x;
|
|---|
| 12 |
|
|---|
| 13 | class Sub extends SuperConstr
|
|---|
| 14 | {
|
|---|
| 15 | Sub()
|
|---|
| 16 | {
|
|---|
| 17 | super(x, Outer.this);
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.