diff options
Diffstat (limited to 'test/files/pos/rebind.scala')
-rw-r--r-- | test/files/pos/rebind.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/rebind.scala b/test/files/pos/rebind.scala new file mode 100644 index 0000000000..3b7b27ac34 --- /dev/null +++ b/test/files/pos/rebind.scala @@ -0,0 +1,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); +} |