We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d921f33 + b599830 commit 8924449Copy full SHA for 8924449
tests/neg/i7325.scala
@@ -0,0 +1,9 @@
1
+import scala.collection._
2
+
3
+class MySeq[A](private val underlying: Seq[A]) // error
4
+ extends Seq[A]
5
+ with SeqOps[A, MySeq, MySeq[A]] {
6
+ def apply(n: Int) = underlying(n)
7
+ def iterator = underlying.iterator
8
+ def length = underlying.size
9
+}
0 commit comments