1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class A(a: Any) object Test { def main(args: Array[String]): Unit = { } val x: Unit = { object InVal extends A({ new {} // okay val o = {new {}} // nesting triggers a VerifyError. null }); InVal; () }; }