Considering this typedef:
case class Outer(someVal: Int) {
case class Inner(someOtherVal: Int)
}
how do I construct an object of type Inner
, (i.e. how do I write the valid scala syntax)?
I want the Inner
to scoped to Outer
to avoid name clashes with different instances of Outer in the same package.