summaryrefslogblamecommitdiff
path: root/test/files/run/t0432.scala
blob: b860a0874f1164927b6ac4e73a2f5a9c988453da (plain) (tree)
1
2
3


                                     














                                           
import scala.language.reflectiveCalls

object Test {
  type valueType = { def value: this.type }

  class StringValue(x: String) {
    def value: this.type = this
  }

  def m(x: valueType) = x.value

  val s = new StringValue("hei")

  def main(args: Array[String]) {
    m(s)
  }
}