blob: 4895e9baa079547c26a557fa062b10b631770458 (
plain) (
tree)
|
|
trait Linked {
type File <: FileImpl;
trait FileImpl {
Console.println("Hello from linked");
}
}
object Test {
class Test extends Linked {
trait FileImpl extends super.FileImpl {
// val x: int = 1
}
class File extends FileImpl;
}
def main(args : Array[String]) : Unit = {
Console.println("BEGIN");
val test = new Test;
val file = new test.File;
Console.println("END");
}
}
|