Skip to content

Commit 5416735

Browse files
committed
Partial Functions resisting
1 parent fd7416e commit 5416735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/mutable/ArraySeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ object ArraySeq extends StrictOptimizedClassTagSeqFactory[ArraySeq] { self =>
120120
* `ArraySeq.make(a.asInstanceOf[Array[Int]])` does not work, it throws a `ClassCastException`
121121
* at runtime.
122122
*/
123-
def make[T](x: Array[T]): ArraySeq[T] = ((x.asInstanceOf[Array[_]]: @unchecked) match {
123+
def make[T](x: Array[T]): ArraySeq[T] = ((x: @unchecked) match {
124124
case null => null
125125
case x: Array[AnyRef] => new ofRef[AnyRef](x)
126126
case x: Array[Int] => new ofInt(x)

0 commit comments

Comments
 (0)