blob: 1b1ce40135bc33f3e770baa1972a4669b9102435 (
plain) (
tree)
|
|
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;
|