summaryrefslogtreecommitdiff
path: root/test/files/pos/rebind.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-09-15 20:10:24 +0000
committerMartin Odersky <odersky@gmail.com>2003-09-15 20:10:24 +0000
commit1b77651f90d9b4132e419409295f0d3c6153cf41 (patch)
tree6cee2b5116466066134cdbeacf809ba878546764 /test/files/pos/rebind.scala
parent01d4668fc81fbbb245d145086ceea0755848a383 (diff)
downloadscala-1b77651f90d9b4132e419409295f0d3c6153cf41.tar.gz
scala-1b77651f90d9b4132e419409295f0d3c6153cf41.tar.bz2
scala-1b77651f90d9b4132e419409295f0d3c6153cf41.zip
*** empty log message ***
Diffstat (limited to 'test/files/pos/rebind.scala')
-rw-r--r--test/files/pos/rebind.scala13
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..59afe82ffa
--- /dev/null
+++ b/test/files/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);
+}