Skip to content

Commit 33062e5

Browse files
committed
Work around a local type inference limitation (fixes the build)
This is probably an instance of scala/bug#3528
1 parent 63246c9 commit 33062e5

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)