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