summaryrefslogtreecommitdiff
path: root/test/pending/pos/t4123.scala
blob: 82ab16b4e414a9352a53fee7ac092f1366826461 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// /scala/trac/4123/a.scala
// Sun Feb 19 00:08:53 PST 2012

trait Iter[@specialized(Byte) +A] extends Iterator[A] {
  self =>
  
  override def map[B](f: (A) => B) = super.map(f)
}

class ByteIter extends Iter[Byte] {
  var i = 0
  def hasNext = i < 3
  def next = { i += 1 ; i.toByte }
}