Skip to content

Commit 8333bf5

Browse files
committed
align a return type in collections internals with Scala 3
context: scala/scala3#18525, which upgrades Scala 3 to use the 2.13.12 stdlib; MiMa there is complaining
1 parent 8ca1710 commit 8333bf5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

project/MimaFilters.scala

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ object MimaFilters extends AutoPlugin {
3939
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.concurrent.impl.FutureConvertersImpl#P.accept"),
4040
ProblemFilters.exclude[IncompatibleMethTypeProblem]("scala.concurrent.impl.FutureConvertersImpl#P.andThen"),
4141

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

4446
override val buildSettings = Seq(

src/library/scala/collection/immutable/HashMap.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ private final class MapNodeRemoveAllSetNodeIterator[K](rootSetNode: SetNode[K])
21812181
curr
21822182
}
21832183

2184-
override def next() = Iterator.empty.next()
2184+
override def next(): K = Iterator.empty.next()
21852185
}
21862186

21872187
/**

0 commit comments

Comments
 (0)