Skip to content

Commit fc9bb75

Browse files
committed
Add collection/Seq to stdlib tests
1 parent b23bf45 commit fc9bb75

File tree

4 files changed

+1210
-1
lines changed

4 files changed

+1210
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Seqq[A]:
2+
def unzip[A1, A2](using asPair: A -> (A1, A2)): (Seq[A1], Seq[A2]) = ???
3+
4+
def Test =
5+
val s: Seqq[(String, Int)] = ???
6+
s.unzip(using Predef.$conforms[(String, Int)])
7+

tests/pos/stdlib/Seq.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
collection/Seq.scala

tests/pos/stdlib/collection/Iterator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
841841
*
842842
* @inheritdoc
843843
*/
844-
def sameElements[B >: A](that: IterableOnce[B]): Boolean = {
844+
def sameElements[B >: A](that: IterableOnce[B]^): Boolean = {
845845
val those = that.iterator
846846
while (hasNext && those.hasNext)
847847
if (next() != those.next())

0 commit comments

Comments
 (0)