summaryrefslogtreecommitdiff
path: root/test/files/pos/t4716.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t4716.scala')
-rw-r--r--test/files/pos/t4716.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t4716.scala b/test/files/pos/t4716.scala
new file mode 100644
index 0000000000..ec29e8d2cb
--- /dev/null
+++ b/test/files/pos/t4716.scala
@@ -0,0 +1,10 @@
+
+
+
+
+trait Bug2[@specialized(Int) +A] extends TraversableOnce[A] {
+ def ++[B >: A](that: TraversableOnce[B]) = {
+ lazy val it = that.toIterator
+ it
+ }
+}