aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t404.scala
blob: 8f5e8bef5e0b3fb6dc2f92c57748952c8d2528fb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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