aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6309.scala
blob: f0bcca69c924aeb986758a23848b9768ebd77e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
  }
}