summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-08-16 09:47:09 +0000
committermihaylov <mihaylov@epfl.ch>2006-08-16 09:47:09 +0000
commit1b39181c3705bbff5e1b85e061742ab7ba9ace4f (patch)
tree56d21816d8749edb5d8ccfa73f5056769b90cb6f /test
parent279f7b66746506315fd72ca6143f50ef6ce87208 (diff)
downloadscala-1b39181c3705bbff5e1b85e061742ab7ba9ace4f.tar.gz
scala-1b39181c3705bbff5e1b85e061742ab7ba9ace4f.tar.bz2
scala-1b39181c3705bbff5e1b85e061742ab7ba9ace4f.zip
Added test case for bug #404
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/bug404.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/bug404.scala b/test/files/pos/bug404.scala
new file mode 100644
index 0000000000..1b1ce40135
--- /dev/null
+++ b/test/files/pos/bug404.scala
@@ -0,0 +1,12 @@
+trait AbsIterator {
+ type T;
+ def next: T;
+}
+class StringIterator extends AbsIterator {
+ type T = char;
+ def next = 'a';
+}
+trait SyncIterator extends AbsIterator {
+ abstract override def next: T = super.next;
+}
+class I extends StringIterator with SyncIterator;