Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

proper elementClass for WrappedArray

(backport of 45ef051, part 1)
  • Loading branch information...
commit f76432a45119032b595270997f721614d61465b0 1 parent e112ac9
@adriaanm adriaanm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/library/scala/collection/mutable/WrappedArray.scala
View
2  src/library/scala/collection/mutable/WrappedArray.scala
@@ -62,7 +62,7 @@ extends AbstractSeq[T]
override def par = ParArray.handoff(array)
private def elementClass: Class[_] =
- arrayElementClass(repr.getClass)
+ arrayElementClass(array.getClass)
override def toArray[U >: T : ClassTag]: Array[U] = {
val thatElementClass = arrayElementClass(implicitly[ClassTag[U]])
Please sign in to comment.
Something went wrong with that request. Please try again.