summaryrefslogtreecommitdiff
path: root/test/files/run/t9946c.scala
blob: f9fe68d48fd1e07eb5714cece49b96920041196a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class Test(private[this] val x: String) {
  lazy val y = x.reverse
}
object Test {
  def main(args: Array[String]): Unit = {
    val t = new Test("foo")
    assert(t.y == "oof", t.y)
  }
}