|
Last change
on this file since 3103 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:
665 bytes
|
| Line | |
|---|
| 1 | // Class indirect
|
|---|
| 2 | // Generated on Tue Nov 16 15:53:14 UTC 1999
|
|---|
| 3 | // Several indirection to enclosing class
|
|---|
| 4 |
|
|---|
| 5 | class indirect {
|
|---|
| 6 |
|
|---|
| 7 | private int foo;
|
|---|
| 8 |
|
|---|
| 9 | class indirect_inner {
|
|---|
| 10 | class other {
|
|---|
| 11 | class inner {
|
|---|
| 12 | void test () {
|
|---|
| 13 | int x = foo;
|
|---|
| 14 | System.out.println ("x="+foo);
|
|---|
| 15 | foo = 671;
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | }
|
|---|
| 21 | void foo ()
|
|---|
| 22 | {
|
|---|
| 23 | foo = 670;
|
|---|
| 24 | indirect_inner inn = this.new indirect_inner ();
|
|---|
| 25 | this.new indirect_inner().new other().new inner ().test ();
|
|---|
| 26 | System.out.println ("foo="+foo);
|
|---|
| 27 | }
|
|---|
| 28 | public static void main (String[] arg)
|
|---|
| 29 | {
|
|---|
| 30 | System.out.println ("Testing class `indirect'...");
|
|---|
| 31 | new indirect().foo ();
|
|---|
| 32 | }
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.