From 40efc354548b05b2cc5cfbd1f1694e0f79e31ac5 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 3 Jun 2016 13:28:36 +0200 Subject: Fix colltest4: ListBuffer[A]#fromIterable had an incorrect cast --- src/strawman/collections/CollectionStrawMan4.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/strawman') diff --git a/src/strawman/collections/CollectionStrawMan4.scala b/src/strawman/collections/CollectionStrawMan4.scala index ec20849ff..fb95ea59f 100644 --- a/src/strawman/collections/CollectionStrawMan4.scala +++ b/src/strawman/collections/CollectionStrawMan4.scala @@ -218,7 +218,7 @@ object CollectionStrawMan4 { def fromIterable[B](coll: Iterable[B]): ListBuffer[B] = coll match { case pd @ View.Partitioned(partition: View.Partition[B]) => partition.distribute(new ListBuffer[B]()) - pd.forced.get.asInstanceOf[ListBuffer[B]] + new ListBuffer[B] ++= pd.forced.get case _ => new ListBuffer[B] ++= coll } -- cgit v1.2.3