@@ -53,6 +53,7 @@ abstract class VCFloatCompanion[T /*<: VCFloatPrototype*/] extends ClassTag[T] {
53
53
implicit def classTag : this .type = this
54
54
override def newArray (len : Int ): Array [T ] =
55
55
new VCFloatArray (this .asInstanceOf [VCFloatCompanion [VCFloatPrototype ]], len).asInstanceOf [Array [T ]]
56
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
56
57
57
58
58
59
def _1$extension (underlying : Float ) = underlying
@@ -108,6 +109,7 @@ abstract class VCObjectCompanion[T /*<: VCObjectPrototype*/] extends ClassTag[T]
108
109
implicit def classTag : this .type = this
109
110
override def newArray (len : Int ): Array [T ] =
110
111
new VCObjectArray (this .asInstanceOf [VCObjectCompanion [VCObjectPrototype ]], len).asInstanceOf [Array [T ]]
112
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
111
113
112
114
113
115
def _1$extension (underlying : Object ) = underlying
@@ -165,6 +167,7 @@ abstract class VCShortCompanion[T /*<: VCShortPrototype*/] extends ClassTag[T] {
165
167
implicit def classTag : this .type = this
166
168
override def newArray (len : Int ): Array [T ] =
167
169
new VCShortArray (this .asInstanceOf [VCShortCompanion [VCShortPrototype ]], len).asInstanceOf [Array [T ]]
170
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
168
171
169
172
170
173
def _1$extension (underlying : Short ) = underlying
@@ -223,6 +226,7 @@ abstract class VCLongCompanion[T /*<: VCLongPrototype*/] extends ClassTag[T] {
223
226
implicit def classTag : this .type = this
224
227
override def newArray (len : Int ): Array [T ] =
225
228
new VCLongArray (this .asInstanceOf [VCLongCompanion [VCLongPrototype ]], len).asInstanceOf [Array [T ]]
229
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
226
230
227
231
228
232
def _1$extension (underlying : Long ) = underlying
@@ -279,6 +283,7 @@ abstract class VCIntCompanion[T /*<: VCIntPrototype*/] extends ClassTag[T] {
279
283
implicit def classTag : this .type = this
280
284
override def newArray (len : Int ): Array [T ] =
281
285
new VCIntArray (this .asInstanceOf [VCIntCompanion [VCIntPrototype ]], len).asInstanceOf [Array [T ]]
286
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
282
287
283
288
def _1$extension (underlying : Int ) = underlying
284
289
def hashCode$extension (underlying : Int ) = underlying.hashCode()
@@ -333,6 +338,7 @@ abstract class VCDoubleCompanion[T /*<: VCDoublePrototype*/] extends ClassTag[T]
333
338
implicit def classTag : this .type = this
334
339
override def newArray (len : Int ): Array [T ] =
335
340
new VCDoubleArray (this .asInstanceOf [VCDoubleCompanion [VCDoublePrototype ]], len).asInstanceOf [Array [T ]]
341
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
336
342
337
343
338
344
def _1$extension (underlying : Double ) = underlying
@@ -388,6 +394,7 @@ abstract class VCBooleanCompanion[T /*<: VCBooleanPrototype*/] extends ClassTag[
388
394
implicit def classTag : this .type = this
389
395
override def newArray (len : Int ): Array [T ] =
390
396
new VCBooleanArray (this .asInstanceOf [VCBooleanCompanion [VCBooleanPrototype ]], len).asInstanceOf [Array [T ]]
397
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
391
398
392
399
393
400
def _1$extension (underlying : Boolean ) = underlying
@@ -447,6 +454,7 @@ abstract class VCCharCompanion[T /*<: VCCharPrototype*/] extends ClassTag[T] {
447
454
implicit def classTag : this .type = this
448
455
override def newArray (len : Int ): Array [T ] =
449
456
new VCCharArray (this .asInstanceOf [VCCharCompanion [VCCharPrototype ]], len).asInstanceOf [Array [T ]]
457
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
450
458
451
459
452
460
def _1$extension (underlying : Char ) = underlying
@@ -502,6 +510,7 @@ abstract class VCByteCompanion[T /*<: VCBytePrototype*/] extends ClassTag[T] {
502
510
implicit def classTag : this .type = this
503
511
override def newArray (len : Int ): Array [T ] =
504
512
new VCByteArray (this .asInstanceOf [VCByteCompanion [VCBytePrototype ]], len).asInstanceOf [Array [T ]]
513
+ override def wrap : ClassTag [Array [T ]] = ClassTag [Array [T ]](this .newArray(0 ).getClass)
505
514
506
515
507
516
def _1$extension (underlying : Byte ) = underlying
0 commit comments