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.
1 parent f003711 commit b599830Copy full SHA for b599830
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