aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t6666a.scala
blob: 1d208a32e7f7bfa28784d22c679fcb9101f89ebc (plain) (blame)
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;
    ()
  };
}