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




             





                                                


             
                                         


                   
trait A {
  def a: Int
}

object Test {
  def f(a: Int) = new A {
// TODO NEEDS MANUAL CHANGE (early initializers)
// BEGIN copied early initializers
private[this] val b = a
// END copied early initializers

    def a = b
  }

  def main(args: Array[String]): Unit = {
    println(f(7).a)
  }
}