1 2 3 4 5 6 7 8 9 10 11
package example class A { case class B(x: Int) def c = B } object A { def main(args: Array[String]): Unit = { (new A).c } }