summaryrefslogtreecommitdiff
path: root/test/files/pos/rebind.scala
blob: 61ff0c223ee7e226026873baf8a5c3f4bf1992b5 (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 {
  Console.println(foo.inner);
}