From e51b8845fb20fe3a4e1c655d4b72e2833906bbc2 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 20 Dec 2015 22:00:29 +0100 Subject: The big pending/pos test triage --- tests/pos/t404.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/pos/t404.scala (limited to 'tests/pos/t404.scala') diff --git a/tests/pos/t404.scala b/tests/pos/t404.scala new file mode 100644 index 000000000..8f5e8bef5 --- /dev/null +++ b/tests/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 -- cgit v1.2.3