Skip to content

Commit 3987e83

Browse files
authored
Merge pull request scala#8422 from lrytz/t11737-dotty
Avoid dotty compiler crash
2 parents 4b35778 + ae3c857 commit 3987e83

File tree

1 file changed

+1
-1
lines changed
  • src/library/scala/collection/mutable

1 file changed

+1
-1
lines changed

src/library/scala/collection/mutable/Map.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ trait MapOps[K, V, +CC[X, Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
200200
*/
201201
def mapValuesInPlace(f: (K, V) => V): this.type = {
202202
if (nonEmpty) this match {
203-
case hm: mutable.HashMap[K, V] => hm.mapValuesInPlaceImpl(f)
203+
case hm: mutable.HashMap[_, _] => hm.asInstanceOf[mutable.HashMap[K, V]].mapValuesInPlaceImpl(f)
204204
case _ =>
205205
val array = this.toArray[Any]
206206
val arrayLength = array.length

0 commit comments

Comments
 (0)