Skip to content
Browse files

proper elementClass for WrappedArray

(backport of 45ef051, part 1)
  • Loading branch information...
1 parent e112ac9 commit f76432a45119032b595270997f721614d61465b0 @adriaanm adriaanm committed Jan 4, 2013
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]])

0 comments on commit f76432a

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