• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1class ConstructorCalls {
2
3    void testNormalConstructor() {
4        new OtherClass();
5    }
6
7    void testInnerClassConstructor() {
8        OtherClass oc = new OtherClass();
9        oc.new InnerClass();
10    }
11
12    void testInnerClassConstructorWithNewScope() {
13        new OtherClass().new InnerClass();
14    }
15
16    void testInnerInnerClassConstructor() {
17        new OtherClass().new InnerClass().new InnerInnerClass();
18    }
19}
20
21class OtherClass {
22
23    OtherClass() {}
24
25    class InnerClass {
26
27        InnerClass() {}
28
29        class InnerInnerClass {
30
31            InnerInnerClass() {}
32        }
33    }
34}
35