summaryrefslogtreecommitdiff
path: root/test/pending/pos/t4717.scala
diff options
context:
space:
mode:
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