ea9e4ec55e ^
1 2 3 4 5 6 7 8 9 10 11
class X(val i: Int) extends AnyVal { class Inner(val q: Int) { def plus = i + q } } object Test extends App { val x = new X(11) val i = new x.Inner(22) assert(i.plus == 33) }