blob: 7164b0cd280b4ca721fda3cd391971696c7133b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
object This with Executable {
trait A {
def foo(): unit;
}
class C: A {
def bar() = this.foo();
}
class D extends C with A {
def foo() = ()
}
val c: C = new D;
}
|