aboutsummaryrefslogtreecommitdiff
path: root/src/strawman
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-06-03 13:28:36 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-27 19:28:37 +0200
commit40efc354548b05b2cc5cfbd1f1694e0f79e31ac5 (patch)
tree1d854f31b26916eab5af3e9a86b7f5a1ab34b5e3 /src/strawman
parenta452fa2b85da4fc44af444bfe3f5d32afe6f5503 (diff)
downloaddotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.tar.gz
dotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.tar.bz2
dotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.zip
Fix colltest4: ListBuffer[A]#fromIterable had an incorrect cast
Diffstat (limited to 'src/strawman')
-rw-r--r--src/strawman/collections/CollectionStrawMan4.scala2
1 files changed, 1 insertions, 1 deletions
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
}