We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c343eff commit c6a8ba5Copy full SHA for c6a8ba5
library/src/scala/collection/MapView.scala
@@ -88,7 +88,7 @@ object MapView extends MapViewFactory {
88
override def knownSize: Int = 0
89
override def isEmpty: Boolean = true
90
override def filterKeys(p: Any => Boolean): MapView[Any, Nothing] = this
91
- override def mapValues[W](f: Nothing => W): MapView[Any, Nothing] = this
+ override def mapValues[W](f: Nothing => W): MapView[Any, W] = this // TODO: W is originally Nothing in return type, but breaks CC
92
override def filter(pred: ((Any, Nothing)) => Boolean): MapView[Any, Nothing] = this
93
override def filterNot(pred: ((Any, Nothing)) => Boolean): MapView[Any, Nothing] = this
94
override def partition(p: ((Any, Nothing)) => Boolean): (MapView[Any, Nothing], MapView[Any, Nothing]) = (this, this)
0 commit comments