blob: 45745f570090c860123c23ada3ac423fc7018a95 (
plain) (
tree)
|
|
//############################################################################
// Test Scala interaction with Java nested classes and static members.
//############################################################################
/** found in nest.jar, compiled from nest.java */
import nestpkg._;
object Test extends App {
val x = nest.best.rest.test
Console.println(x.inc(1))
val o = new nest.best;
val r = new nest.best.rest;
Console.println(nest.best.rest.test.inc(2))
Console.println(nest.best.rest.x)
print("Instantiating public inner class: ")
val outer = new nest
val inn = new outer.Inn(42)
inn.doSomething
}
|