summaryrefslogtreecommitdiff
path: root/test/files/pos/t404.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t404.scala')
-rw-r--r--test/files/pos/t404.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t404.scala b/test/files/pos/t404.scala
new file mode 100644
index 0000000000..8f5e8bef5e
--- /dev/null
+++ b/test/files/pos/t404.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