Skip to content

Commit 7613a01

Browse files
committed
VCXArray: don't make the constructor private
It will be useful to wrap SeqLiterals
1 parent 9e80b48 commit 7613a01

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/dotty/runtime/vc/VCPrototype.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract class VCFloatCompanion[T <: VCFloatPrototype] extends ClassTag[T] {
4444
def productPrefix$extension(underlying: Float): String
4545
}
4646

47-
final class VCFloatArray[T <: VCFloatPrototype] private (val arr: Array[Float], val ct: VCFloatCompanion[T])
47+
final class VCFloatArray[T <: VCFloatPrototype] (val arr: Array[Float], val ct: VCFloatCompanion[T])
4848
extends VCArrayPrototype[T] {
4949
def this(ct: VCFloatCompanion[T], sz: Int) =
5050
this(new Array[Float](sz), ct)
@@ -95,7 +95,7 @@ abstract class VCObjectCompanion[T <: VCObjectPrototype] extends ClassTag[T] {
9595
def productPrefix$extension(underlying: Object): String
9696
}
9797

98-
final class VCObjectArray[T <: VCObjectPrototype] private (val arr: Array[Object], val ct: VCObjectCompanion[T])
98+
final class VCObjectArray[T <: VCObjectPrototype] (val arr: Array[Object], val ct: VCObjectCompanion[T])
9999
extends VCArrayPrototype[T] {
100100
def this(ct: VCObjectCompanion[T], sz: Int) =
101101
this(new Array[Object](sz), ct)
@@ -148,7 +148,7 @@ abstract class VCShortCompanion[T <: VCShortPrototype] extends ClassTag[T] {
148148
def productPrefix$extension(underlying: Short): String
149149
}
150150

151-
final class VCShortArray[T <: VCShortPrototype] private (val arr: Array[Short], val ct: VCShortCompanion[T])
151+
final class VCShortArray[T <: VCShortPrototype] (val arr: Array[Short], val ct: VCShortCompanion[T])
152152
extends VCArrayPrototype[T] {
153153
def this(ct: VCShortCompanion[T], sz: Int) =
154154
this(new Array[Short](sz), ct)
@@ -202,7 +202,7 @@ abstract class VCLongCompanion[T <: VCLongPrototype] extends ClassTag[T] {
202202
def productPrefix$extension(underlying: Long): String
203203
}
204204

205-
final class VCLongArray[T <: VCLongPrototype] private (val arr: Array[Long], val ct: VCLongCompanion[T])
205+
final class VCLongArray[T <: VCLongPrototype] (val arr: Array[Long], val ct: VCLongCompanion[T])
206206
extends VCArrayPrototype[T] {
207207
def this(ct: VCLongCompanion[T], sz: Int) =
208208
this(new Array[Long](sz), ct)
@@ -255,7 +255,7 @@ abstract class VCIntCompanion[T <: VCIntPrototype] extends ClassTag[T] {
255255
def productPrefix$extension(underlying: Int): String
256256
}
257257

258-
final class VCIntArray[T <: VCIntPrototype] private (val arr: Array[Int], val ct: VCIntCompanion[T])
258+
final class VCIntArray[T <: VCIntPrototype] (val arr: Array[Int], val ct: VCIntCompanion[T])
259259
extends VCArrayPrototype[T] {
260260
def this(ct: VCIntCompanion[T], sz: Int) =
261261
this(new Array[Int](sz), ct)
@@ -306,7 +306,7 @@ abstract class VCDoubleCompanion[T <: VCDoublePrototype] extends ClassTag[T] {
306306
def productPrefix$extension(underlying: Double): String
307307
}
308308

309-
final class VCDoubleArray[T <: VCDoublePrototype] private (val arr: Array[Double], val ct: VCDoubleCompanion[T])
309+
final class VCDoubleArray[T <: VCDoublePrototype] (val arr: Array[Double], val ct: VCDoubleCompanion[T])
310310
extends VCArrayPrototype[T] {
311311
def this(ct: VCDoubleCompanion[T], sz: Int) =
312312
this(new Array[Double](sz), ct)
@@ -357,7 +357,7 @@ abstract class VCBooleanCompanion[T <: VCBooleanPrototype] extends ClassTag[T] {
357357
def productPrefix$extension(underlying: Boolean): String
358358
}
359359

360-
final class VCBooleanArray[T <: VCBooleanPrototype] private (val arr: Array[Boolean], val ct: VCBooleanCompanion[T])
360+
final class VCBooleanArray[T <: VCBooleanPrototype] (val arr: Array[Boolean], val ct: VCBooleanCompanion[T])
361361
extends VCArrayPrototype[T] {
362362
def this(ct: VCBooleanCompanion[T], sz: Int) =
363363
this(new Array[Boolean](sz), ct)
@@ -412,7 +412,7 @@ abstract class VCCharCompanion[T <: VCCharPrototype] extends ClassTag[T] {
412412
def productPrefix$extension(underlying: Char): String
413413
}
414414

415-
final class VCCharArray[T <: VCCharPrototype] private (val arr: Array[Char], val ct: VCCharCompanion[T])
415+
final class VCCharArray[T <: VCCharPrototype] (val arr: Array[Char], val ct: VCCharCompanion[T])
416416
extends VCArrayPrototype[T] {
417417
def this(ct: VCCharCompanion[T], sz: Int) =
418418
this(new Array[Char](sz), ct)
@@ -463,7 +463,7 @@ abstract class VCByteCompanion[T <: VCBytePrototype] extends ClassTag[T] {
463463
def productPrefix$extension(underlying: Byte): String
464464
}
465465

466-
final class VCByteArray[T <: VCBytePrototype] private (val arr: Array[Byte], val ct: VCByteCompanion[T])
466+
final class VCByteArray[T <: VCBytePrototype] (val arr: Array[Byte], val ct: VCByteCompanion[T])
467467
extends VCArrayPrototype[T] {
468468
def this(ct: VCByteCompanion[T], sz: Int) =
469469
this(new Array[Byte](sz), ct)

0 commit comments

Comments
 (0)