aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t5665.scala
blob: 3ac498b5c03af8db3d2cdd39e3e02b56b5f21538 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                         
object O {
  trait T {
    private[this] val c: Int = 42
    def f =
      { x: Int => c }
  }
}

object Test {
  def main(args: Array[String]): Unit = {
    assert(new O.T{}.f(0) == 42)
  }
}