diff options
author | Paolo G. Giarrusso <p.giarrusso@gmail.com> | 2016-10-07 15:57:07 +0200 |
---|---|---|
committer | Paolo G. Giarrusso <p.giarrusso@gmail.com> | 2016-10-07 16:03:34 +0200 |
commit | e79ec993834d019d27e9337ac7604d0bb1ea7f78 (patch) | |
tree | 61c59db76998125ccdee9e77b465afa89610e971 /src/strawman | |
parent | efd60bbd2f9c02d34e296f2932665b8ebe733f61 (diff) | |
download | dotty-e79ec993834d019d27e9337ac7604d0bb1ea7f78.tar.gz dotty-e79ec993834d019d27e9337ac7604d0bb1ea7f78.tar.bz2 dotty-e79ec993834d019d27e9337ac7604d0bb1ea7f78.zip |
Suppress some spurious unchecked warnings
The warning is invalid but Scalac can't tell.
Diffstat (limited to 'src/strawman')
-rw-r--r-- | src/strawman/collections/CollectionStrawMan4.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strawman/collections/CollectionStrawMan4.scala b/src/strawman/collections/CollectionStrawMan4.scala index fb95ea59f..7e8de2c82 100644 --- a/src/strawman/collections/CollectionStrawMan4.scala +++ b/src/strawman/collections/CollectionStrawMan4.scala @@ -216,7 +216,7 @@ object CollectionStrawMan4 { object ListBuffer extends IterableFactory[ListBuffer] { def fromIterable[B](coll: Iterable[B]): ListBuffer[B] = coll match { - case pd @ View.Partitioned(partition: View.Partition[B]) => + case pd @ View.Partitioned(partition: View.Partition[B] @unchecked) => partition.distribute(new ListBuffer[B]()) new ListBuffer[B] ++= pd.forced.get case _ => @@ -267,7 +267,7 @@ object CollectionStrawMan4 { Array.copy(fst.elems, fst.start, elems, 0, fst.length) Array.copy(snd.elems, snd.start, elems, fst.length, snd.length) new ArrayBuffer(elems, elems.length) - case pd @ View.Partitioned(partition: View.Partition[B]) => + case pd @ View.Partitioned(partition: View.Partition[B] @unchecked) => partition.distribute(new ArrayBuffer[B]()) pd.forced.get.asInstanceOf[ArrayBuffer[B]] case c if c.knownLength >= 0 => |