Skip to content

Commit 8924449

Browse files
authored
Merge pull request #12894 from dotty-staging/fix-7325
Fix #7325: Add test case.
2 parents d921f33 + b599830 commit 8924449

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/neg/i7325.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)