legacy-svn-scala/test/files/neg/bug515.scala

9 lines
177 B
Scala

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