summaryrefslogblamecommitdiff
path: root/test/files/neg/bug515.scala
blob: 34f965231c39c7ff6cd044eacf18a8c81e282026 (plain) (tree)
1
2
3
4
5
6
7
8







                                   
object Test extends Application {
  class Truc {
    def getMachin() = "machin"
    def getMachinAsTruc() = this
  }
  val file = new Truc
  val parent: Truc = file.getMachin
}