Add java checker test to test loading inner/nested classes

This commit is contained in:
Pavel V. Talanov
2015-10-30 16:37:24 +03:00
parent e5f075c7f6
commit f6e6ead907
4 changed files with 44 additions and 0 deletions
@@ -0,0 +1,14 @@
package test;
import a.b.c.Outer;
class Test {
public static void main(Outer o) {
Outer oo = o.o();
Outer.Inner oi = o.i();
Outer.Nested on = o.n();
Outer.Nested.NI oni = o.NI();
Outer.Nested.NN onn = o.NN();
Outer.Inner.II oii = o.II();
}
}
@@ -0,0 +1,18 @@
package a.b.c
class Outer {
class Nested {
inner class NI
class NN
}
inner class Inner {
inner class II
}
fun o() = Outer()
fun n() = Nested()
fun i() = Inner()
fun II() = Inner().II()
fun NI() = Nested().NI()
fun NN() = Nested.NN()
}