diff options
-rw-r--r-- | src/dotty/runtime/vc/VCBooleanPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCBytePrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCCharPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCDoublePrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCFloatPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCIntPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCLongPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCObjectPrototype.scala | 2 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCShortPrototype.scala | 2 |
9 files changed, 18 insertions, 0 deletions
diff --git a/src/dotty/runtime/vc/VCBooleanPrototype.scala b/src/dotty/runtime/vc/VCBooleanPrototype.scala index a651ee820..9c90fb304 100644 --- a/src/dotty/runtime/vc/VCBooleanPrototype.scala +++ b/src/dotty/runtime/vc/VCBooleanPrototype.scala @@ -24,6 +24,8 @@ abstract class VCBooleanCasePrototype(underlying: Boolean) extends VCBooleanProt abstract class VCBooleanCompanion[T <: VCBooleanPrototype] extends ClassTag[T] { def box(underlying: Boolean): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCBooleanArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCBytePrototype.scala b/src/dotty/runtime/vc/VCBytePrototype.scala index dafd43815..a8a24dab0 100644 --- a/src/dotty/runtime/vc/VCBytePrototype.scala +++ b/src/dotty/runtime/vc/VCBytePrototype.scala @@ -24,6 +24,8 @@ abstract class VCByteCasePrototype(underlying: Byte) extends VCBytePrototype(und abstract class VCByteCompanion[T <: VCBytePrototype] extends ClassTag[T] { def box(underlying: Byte): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCByteArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCCharPrototype.scala b/src/dotty/runtime/vc/VCCharPrototype.scala index 338e9c132..796821f56 100644 --- a/src/dotty/runtime/vc/VCCharPrototype.scala +++ b/src/dotty/runtime/vc/VCCharPrototype.scala @@ -24,6 +24,8 @@ abstract class VCCharCasePrototype(underlying: Char) extends VCCharPrototype(und abstract class VCCharCompanion[T <: VCCharPrototype] extends ClassTag[T] { def box(underlying: Char): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCCharArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCDoublePrototype.scala b/src/dotty/runtime/vc/VCDoublePrototype.scala index f960acd4e..2a3f90f07 100644 --- a/src/dotty/runtime/vc/VCDoublePrototype.scala +++ b/src/dotty/runtime/vc/VCDoublePrototype.scala @@ -24,6 +24,8 @@ abstract class VCDoubleCasePrototype(underlying: Double) extends VCDoublePrototy abstract class VCDoubleCompanion[T <: VCDoublePrototype] extends ClassTag[T] { def box(underlying: Double): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCDoubleArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCFloatPrototype.scala b/src/dotty/runtime/vc/VCFloatPrototype.scala index d2a085d86..c3e110110 100644 --- a/src/dotty/runtime/vc/VCFloatPrototype.scala +++ b/src/dotty/runtime/vc/VCFloatPrototype.scala @@ -24,6 +24,8 @@ abstract class VCFloatCasePrototype(underlying: Float) extends VCFloatPrototype( abstract class VCFloatCompanion[T <: VCFloatPrototype] extends ClassTag[T] { def box(underlying: Float): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCFloatArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCIntPrototype.scala b/src/dotty/runtime/vc/VCIntPrototype.scala index bd788026e..44f746ed4 100644 --- a/src/dotty/runtime/vc/VCIntPrototype.scala +++ b/src/dotty/runtime/vc/VCIntPrototype.scala @@ -24,6 +24,8 @@ abstract class VCIntCasePrototype(underlying: Int) extends VCIntPrototype(underl abstract class VCIntCompanion[T <: VCIntPrototype] extends ClassTag[T] { def box(underlying: Int): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCIntArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCLongPrototype.scala b/src/dotty/runtime/vc/VCLongPrototype.scala index eb7e5a6d2..83690bcfd 100644 --- a/src/dotty/runtime/vc/VCLongPrototype.scala +++ b/src/dotty/runtime/vc/VCLongPrototype.scala @@ -24,6 +24,8 @@ abstract class VCLongCasePrototype(underlying: Long) extends VCLongPrototype(und abstract class VCLongCompanion[T <: VCLongPrototype] extends ClassTag[T] { def box(underlying: Long): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCLongArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCObjectPrototype.scala b/src/dotty/runtime/vc/VCObjectPrototype.scala index 01a0da5ee..fd0c8728a 100644 --- a/src/dotty/runtime/vc/VCObjectPrototype.scala +++ b/src/dotty/runtime/vc/VCObjectPrototype.scala @@ -24,6 +24,8 @@ abstract class VCObjectCasePrototype(underlying: Object) extends VCObjectPrototy abstract class VCObjectCompanion[T <: VCObjectPrototype] extends ClassTag[T] { def box(underlying: Object): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCObjectArray(this, len).asInstanceOf[Array[T]] diff --git a/src/dotty/runtime/vc/VCShortPrototype.scala b/src/dotty/runtime/vc/VCShortPrototype.scala index 94bf36908..519e6d5c8 100644 --- a/src/dotty/runtime/vc/VCShortPrototype.scala +++ b/src/dotty/runtime/vc/VCShortPrototype.scala @@ -24,6 +24,8 @@ abstract class VCShortCasePrototype(underlying: Short) extends VCShortPrototype( abstract class VCShortCompanion[T <: VCShortPrototype] extends ClassTag[T] { def box(underlying: Short): T final def unbox(boxed: T) = boxed.underlying + + implicit def classTag: this.type = this override def newArray(len: Int): Array[T] = new VCShortArray(this, len).asInstanceOf[Array[T]] |