Skip to content

Commit

Permalink
Merge pull request #8422 from lrytz/t11737-dotty
Browse files Browse the repository at this point in the history
Avoid dotty compiler crash
  • Loading branch information
SethTisue committed Sep 16, 2019
2 parents 4b35778 + ae3c857 commit 3987e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/scala/collection/mutable/Map.scala
Expand Up @@ -200,7 +200,7 @@ trait MapOps[K, V, +CC[X, Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
*/
def mapValuesInPlace(f: (K, V) => V): this.type = {
if (nonEmpty) this match {
case hm: mutable.HashMap[K, V] => hm.mapValuesInPlaceImpl(f)
case hm: mutable.HashMap[_, _] => hm.asInstanceOf[mutable.HashMap[K, V]].mapValuesInPlaceImpl(f)
case _ =>
val array = this.toArray[Any]
val arrayLength = array.length
Expand Down

0 comments on commit 3987e83

Please sign in to comment.