summaryrefslogtreecommitdiff
path: root/test/pending/pos/t4717.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-19 00:03:55 -0800
committerPaul Phillips <paulp@improving.org>2012-02-19 00:19:12 -0800
commit87e369ef46bd2ca569ffd1cd6f3a554f1d645dc9 (patch)
tree4e3ab65d04eefe10a49ee97bcca254f10db1c52f /test/pending/pos/t4717.scala
parentec160bae7e2935d98bf71cfb6dcba61f1979b854 (diff)
downloadscala-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/t4717.scala')
-rw-r--r--test/pending/pos/t4717.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pending/pos/t4717.scala b/test/pending/pos/t4717.scala
new file mode 100644
index 0000000000..43cf412bc6
--- /dev/null
+++ b/test/pending/pos/t4717.scala
@@ -0,0 +1,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
+ }
+} \ No newline at end of file