aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t6481.scala
blob: 8bbf5cf954677d66a14bee46e77887f6f7b514a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                       





                            
                                         



                                                              
abstract class foo(a: Int, b: Int) extends scala.DelayedInit {
  def delayedInit(x: => Unit): Unit = {
    println("delayed init");
    x
  }
}

object Test {
  def main(args: Array[String]): Unit = {
    new foo(1, 2) { println("new foo(1, 2)") }
    new foo(b = 2, a = 1) { println("new foo(b = 2, a = 1)") }
  }
}