aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t7019.scala
blob: 5dcc09d2b604f57c5bd14cfa9a656d3e021e302d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
final class Foo(val i: Int) extends AnyVal {
  def foo() = go(i)
  private[this] def go(i: Int) = i * 2
}

object Test {
  def main(args: Array[String]): Unit = {
    assert(new Foo(1).foo() == 2)
  }
}