source: trunk/gcc/libjava/testsuite/libjava.compile/inner_1.java

Last change on this file was 2, checked in by bird, 22 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: 674 bytes
Line 
1// inner class regression test.
2
3package bar.foo;
4
5class other {
6 class foo {}
7}
8
9class inner_1 {
10 static void bar () {
11 inner_1 xxxx; // Refers to inner_1
12 bar.foo.another xyz; // Refers to non inner another
13 bar.foo.other.foo X; // OK to declare, inner class foo
14 bar.foo.inner_1.t bar; // Inner class t
15 inner_1.t foo; // Inner class t
16 t foobar; // Inner class t
17 other.foo zag; // Valid for declaration.
18 t.ungah x;
19 }
20 void foo () {
21 // z.t.u foo;
22 t t1 = new t();
23 t1.print ();
24 new t().print();
25 }
26
27 class t {
28 void print () {
29 System.out.println ("This is `inner_1.t'");
30 }
31 class ungah {}
32 }
33}
34
35class another {
36}
Note: See TracBrowser for help on using the repository browser.