summaryrefslogtreecommitdiff
path: root/test/pending/pos/t4717.scala
blob: 43cf412bc61208b0a7b27d55b3a87ed59be25321 (plain) (blame)
1
2
3
4
5
6
7
trait Bug1[@specialized +A] extends TraversableOnce[A] {  
  def ++[B >: A](that: TraversableOnce[B]): Iterator[B] = new Iterator[B] {
    lazy val it = that.toIterator
    def hasNext = it.hasNext
    def next = it.next
  }
}