blob: 8f5e8bef5e0b3fb6dc2f92c57748952c8d2528fb (
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
|