We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299b024 commit 9f2b943Copy full SHA for 9f2b943
src/dotty/DottyPredef.scala
@@ -13,7 +13,14 @@ object DottyPredef {
13
implicit def typeTag[T]: TypeTag[T] = ???
14
15
implicit def arrayTag[T](implicit ctag: ClassTag[T]): ClassTag[Array[T]] =
16
- ctag.wrap
+ ctag match {
17
+ case _: VCIntCompanion[_] | _: VCShortCompanion[_] |
18
+ _: VCLongCompanion[_] | _: VCFloatCompanion[_] |
19
+ _: VCDoubleCompanion[_] | _: VCBooleanCompanion[_] |
20
+ _: VCByteCompanion[_] | _: VCObjectCompanion[_] |
21
+ _: VCCharCompanion[_] => ClassTag[Array[T]](ctag.newArray(0).getClass)
22
+ case _ => ctag.wrap
23
+ }
24
25
def wrapVCArray[T](xs: Array[T]): WrappedArray[T] = {
26
new WrappedArray[T] {
0 commit comments