Skip to content
This repository
Browse code

proper elementClass for WrappedArray

(backport of 45ef051, part 1)
  • Loading branch information...
commit f76432a45119032b595270997f721614d61465b0 1 parent e112ac9
Adriaan Moors adriaanm authored
2  src/library/scala/collection/mutable/WrappedArray.scala
@@ -62,7 +62,7 @@ extends AbstractSeq[T]
62 62 override def par = ParArray.handoff(array)
63 63
64 64 private def elementClass: Class[_] =
65   - arrayElementClass(repr.getClass)
  65 + arrayElementClass(array.getClass)
66 66
67 67 override def toArray[U >: T : ClassTag]: Array[U] = {
68 68 val thatElementClass = arrayElementClass(implicitly[ClassTag[U]])

0 comments on commit f76432a

Please sign in to comment.
Something went wrong with that request. Please try again.