diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-19 00:03:55 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-19 00:19:12 -0800 |
commit | 87e369ef46bd2ca569ffd1cd6f3a554f1d645dc9 (patch) | |
tree | 4e3ab65d04eefe10a49ee97bcca254f10db1c52f /test/pending/pos/t4123.scala | |
parent | ec160bae7e2935d98bf71cfb6dcba61f1979b854 (diff) | |
download | scala-87e369ef46bd2ca569ffd1cd6f3a554f1d645dc9.tar.gz scala-87e369ef46bd2ca569ffd1cd6f3a554f1d645dc9.tar.bz2 scala-87e369ef46bd2ca569ffd1cd6f3a554f1d645dc9.zip |
More specialization tests.
Some in pending, some in files. Closes SI-4770.
Diffstat (limited to 'test/pending/pos/t4123.scala')
-rw-r--r-- | test/pending/pos/t4123.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/pos/t4123.scala b/test/pending/pos/t4123.scala new file mode 100644 index 0000000000..82ab16b4e4 --- /dev/null +++ b/test/pending/pos/t4123.scala @@ -0,0 +1,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 } +}
\ No newline at end of file |