blob: 3b7b27ac347fa98fcb9c66e4edf4f022cb742839 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
abstract class Foo {
class Inner {
def inner: int = 1;
}
def foo: Inner;
}
trait Bar {
type Inner;
def foo: Inner = foo;
}
class Test extends Foo with Bar {
System.out.println(foo.inner);
}
|