summaryrefslogtreecommitdiff
path: root/test/files/run/t9223.scala
blob: 78767b158d91b49d5340696721cac687e1a746f6 (plain) (blame)
1
2
3
4
5
6
7
8
class X(val x: String)
class Y(y: => String) extends X(y) { def f = y }

object Test {
  def main(args: Array[String]): Unit = {
    assert(new Y("hi").f == "hi")
  }
}