diff options
Diffstat (limited to 'test/pos/rebind.scala')
-rw-r--r-- | test/pos/rebind.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pos/rebind.scala b/test/pos/rebind.scala new file mode 100644 index 0000000000..59afe82ffa --- /dev/null +++ b/test/pos/rebind.scala @@ -0,0 +1,13 @@ +abstract class Foo { + class Inner { + def inner: int = 1; + } + def foo: Inner; +} +abstract class Bar { + type Inner; + def foo: Inner = foo; +} +class Test extends Foo with Bar { + System.out.println(foo.inner); +} |