Skip to content

Commit d79c006

Browse files
authored
Merge pull request scala/scala#7010 from lrytz/buildFix
Work around a local type inference limitation (fixes the build)
2 parents 63246c9 + 33062e5 commit d79c006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/immutable/SeqMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ object SeqMap extends MapFactory[SeqMap] {
171171
else {
172172
// Directly create the elements for performance reasons
173173
val fields = Vector(key1, key2, key3, key4, key)
174-
val underlying = if (useBaseline)
174+
val underlying: Map[K, (Int, V1)] = if (useBaseline)
175175
HashMap(
176176
(key1, (0, value1)),
177177
(key2, (1, value2)),

0 commit comments

Comments
 (0)