Skip to content

Commit

Permalink
align a return type in collections internals with Scala 3
Browse files Browse the repository at this point in the history
context: scala/scala3#18525, which upgrades Scala 3 to use the
2.13.12 stdlib; MiMa there is complaining
  • Loading branch information
SethTisue committed Sep 20, 2023
1 parent 8ca1710 commit 8333bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions project/MimaFilters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ object MimaFilters extends AutoPlugin {
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.concurrent.impl.FutureConvertersImpl#P.accept"),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("scala.concurrent.impl.FutureConvertersImpl#P.andThen"),

// 2.13.13; it's okay because the class is private
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.collection.immutable.MapNodeRemoveAllSetNodeIterator.next"),
)

override val buildSettings = Seq(
Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/collection/immutable/HashMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,7 @@ private final class MapNodeRemoveAllSetNodeIterator[K](rootSetNode: SetNode[K])
curr
}

override def next() = Iterator.empty.next()
override def next(): K = Iterator.empty.next()
}

/**
Expand Down

0 comments on commit 8333bf5

Please sign in to comment.