s.c.i.Queue's enqueue method takes s.c.i.Iterable instead of s.c.Iterable #6981
One of the overloads on
scala> import collection.immutable.Queue import collection.immutable.Queue scala> val q: Queue[Int] = Queue(1,2,3) q: scala.collection.immutable.Queue[Int] = Queue(1, 2, 3) scala> q.enqueue(Iterable(4)) res10: scala.collection.immutable.Queue[Any] = Queue(1, 2, 3, List(4)) scala> q.enqueue(scala.collection.immutable.Iterable(4)) res11: scala.collection.immutable.Queue[Int] = Queue(1, 2, 3, 4)
Since there's no reason to require an immutable iterable, it should be made more generic.
The text was updated successfully, but these errors were encountered: