Reputation: 11
I am getting this error after i upgraded scala version to 2.13.6:
value
++
is not a member ofjava.util.LinkedHashMap[K,V]
Following is the line which is throwing an error:
case l => Dsl.map(new LinkedHashMap() ++ l)
Upvotes: 1
Views: 205
Reputation: 1220
You probably need to check the import statements in your file and make sure that you're importing the appropriate Scala collection. The ++
operator is defined on the Scala implementation of Map
.
Upvotes: 1