Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 1d0fecb

Browse files
committed
Fix compilation error on Dotty
1 parent f8bd9a3 commit 1d0fecb

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/main/scala/strawman/collection/Factories.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ trait BuildFromLowPriority {
4848
}
4949

5050
/** Build the source collection type from an Iterable with SortedOps */
51-
implicit def buildFromSortedOps[CC[X] <: Iterable[X] with SortedOps[X, CC, CC[X]], A, E : Ordering]: BuildFrom[CC[A], E, CC[E]] = new BuildFrom[CC[A], E, CC[E]] {
51+
implicit def buildFromSortedOps[CC[X] <: Iterable[X] with SortedOps[X, CC, _], A, E : Ordering]: BuildFrom[CC[A], E, CC[E]] = new BuildFrom[CC[A], E, CC[E]] {
5252
def newBuilder(from: CC[A]): Builder[E, CC[E]] = from.sortedIterableFactory.newBuilder[E]()
5353
def fromSpecificIterable(from: CC[A])(it: Iterable[E]): CC[E] = from.sortedIterableFactory.fromSpecificIterable(it)
5454
}

src/test/scala/strawman/collection/test/GenericTest.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ object Parse {
3636
parts.foldLeft[Option[Builder[A, C]]](Some(bf.newBuilder)) { (maybeBuilder, s) =>
3737
(maybeBuilder, parseA.parse(s)) match {
3838
case (Some(builder), Some(a)) =>
39-
scala.Predef.println(a)
40-
scala.Predef.println(builder.result)
4139
Some(builder += a)
4240
case _ => None
4341
}

src/test/scala/strawman/collection/test/TraverseTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class TraverseTest {
4444
case (Right(builder), Right(b)) => Right(builder += b)
4545
case (Left(a) , _) => Left(a)
4646
case (_ , Left(a)) => Left(a)
47-
}.map(_.result)
47+
}.right.map(_.result)
4848

4949
@Test
5050
def optionSequence1Test: Unit = {

0 commit comments

Comments
 (0)