score:0

mutable.Map and immutable.Map are different types, so you just can't assign one to the other which is what your code appears to be trying to do.

But there is a lot of confusion over var/val and mutable/immutable in this code so I suggest going back to a basic course on Scala, or at very least providing some valid Scala code which shows the problem.


Related Query

More Query from same tag