diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-06-03 13:28:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-27 19:28:37 +0200 |
commit | 40efc354548b05b2cc5cfbd1f1694e0f79e31ac5 (patch) | |
tree | 1d854f31b26916eab5af3e9a86b7f5a1ab34b5e3 /tests/run/colltest4 | |
parent | a452fa2b85da4fc44af444bfe3f5d32afe6f5503 (diff) | |
download | dotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.tar.gz dotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.tar.bz2 dotty-40efc354548b05b2cc5cfbd1f1694e0f79e31ac5.zip |
Fix colltest4: ListBuffer[A]#fromIterable had an incorrect cast
Diffstat (limited to 'tests/run/colltest4')
-rw-r--r-- | tests/run/colltest4/CollectionStrawMan4_1.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/colltest4/CollectionStrawMan4_1.scala b/tests/run/colltest4/CollectionStrawMan4_1.scala index 108d266ab..8f0bdc841 100644 --- a/tests/run/colltest4/CollectionStrawMan4_1.scala +++ b/tests/run/colltest4/CollectionStrawMan4_1.scala @@ -217,7 +217,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 } |