9 lines
177 B
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
|
||
|
}
|