Skip to content

Commit 9e80b48

Browse files
committed
VCXCompanion and VCXCasePrototype: don't disallow overriding toString
1 parent 2d35623 commit 9e80b48

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/dotty/runtime/vc/VCPrototype.scala

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class VCFloatCompanion[T <: VCFloatPrototype] extends ClassTag[T] {
4040

4141
final def _1$extension(underlying: Float) = underlying
4242
final def hashCode$extension(underlying: Float) = underlying.hashCode()
43-
final def toString$extension(underlying: Float) = s"${productPrefix$extension(underlying)}($underlying)"
43+
def toString$extension(underlying: Float) = s"${productPrefix$extension(underlying)}($underlying)"
4444
def productPrefix$extension(underlying: Float): String
4545
}
4646

@@ -75,7 +75,7 @@ abstract class VCObjectCasePrototype(underlying: Object) extends VCObjectPrototy
7575
underlying.hashCode()
7676
}
7777

78-
override final def toString: String = {
78+
override def toString: String = {
7979
s"$productPrefix($underlying)"
8080
}
8181
}
@@ -91,7 +91,7 @@ abstract class VCObjectCompanion[T <: VCObjectPrototype] extends ClassTag[T] {
9191

9292
final def _1$extension(underlying: Object) = underlying
9393
final def hashCode$extension(underlying: Object) = underlying.hashCode()
94-
final def toString$extension(underlying: Object) = s"${productPrefix$extension(underlying)}($underlying)"
94+
def toString$extension(underlying: Object) = s"${productPrefix$extension(underlying)}($underlying)"
9595
def productPrefix$extension(underlying: Object): String
9696
}
9797

@@ -128,7 +128,7 @@ abstract class VCShortCasePrototype(underlying: Short) extends VCShortPrototype(
128128
underlying.hashCode()
129129
}
130130

131-
override final def toString: String = {
131+
override def toString: String = {
132132
s"$productPrefix($underlying)"
133133
}
134134
}
@@ -144,7 +144,7 @@ abstract class VCShortCompanion[T <: VCShortPrototype] extends ClassTag[T] {
144144

145145
final def _1$extension(underlying: Short) = underlying
146146
final def hashCode$extension(underlying: Short) = underlying.hashCode()
147-
final def toString$extension(underlying: Short) = s"${productPrefix$extension(underlying)}($underlying)"
147+
def toString$extension(underlying: Short) = s"${productPrefix$extension(underlying)}($underlying)"
148148
def productPrefix$extension(underlying: Short): String
149149
}
150150

@@ -182,7 +182,7 @@ abstract class VCLongCasePrototype(underlying: Long) extends VCLongPrototype(und
182182
underlying.hashCode()
183183
}
184184

185-
override final def toString: String = {
185+
override def toString: String = {
186186
s"$productPrefix($underlying)"
187187
}
188188
}
@@ -198,7 +198,7 @@ abstract class VCLongCompanion[T <: VCLongPrototype] extends ClassTag[T] {
198198

199199
final def _1$extension(underlying: Long) = underlying
200200
final def hashCode$extension(underlying: Long) = underlying.hashCode()
201-
final def toString$extension(underlying: Long) = s"${productPrefix$extension(underlying)}($underlying)"
201+
def toString$extension(underlying: Long) = s"${productPrefix$extension(underlying)}($underlying)"
202202
def productPrefix$extension(underlying: Long): String
203203
}
204204

@@ -235,7 +235,7 @@ abstract class VCIntCasePrototype(underlying: Int) extends VCIntPrototype(underl
235235
underlying.hashCode()
236236
}
237237

238-
override final def toString: String = {
238+
override def toString: String = {
239239
s"$productPrefix($underlying)"
240240
}
241241
}
@@ -251,7 +251,7 @@ abstract class VCIntCompanion[T <: VCIntPrototype] extends ClassTag[T] {
251251

252252
final def _1$extension(underlying: Int) = underlying
253253
final def hashCode$extension(underlying: Int) = underlying.hashCode()
254-
final def toString$extension(underlying: Int) = s"${productPrefix$extension(underlying)}($underlying)"
254+
def toString$extension(underlying: Int) = s"${productPrefix$extension(underlying)}($underlying)"
255255
def productPrefix$extension(underlying: Int): String
256256
}
257257

@@ -286,7 +286,7 @@ abstract class VCDoubleCasePrototype(underlying: Double) extends VCDoublePrototy
286286
underlying.hashCode()
287287
}
288288

289-
override final def toString: String = {
289+
override def toString: String = {
290290
s"$productPrefix($underlying)"
291291
}
292292
}
@@ -302,7 +302,7 @@ abstract class VCDoubleCompanion[T <: VCDoublePrototype] extends ClassTag[T] {
302302

303303
final def _1$extension(underlying: Double) = underlying
304304
final def hashCode$extension(underlying: Double) = underlying.hashCode()
305-
final def toString$extension(underlying: Double) = s"${productPrefix$extension(underlying)}($underlying)"
305+
def toString$extension(underlying: Double) = s"${productPrefix$extension(underlying)}($underlying)"
306306
def productPrefix$extension(underlying: Double): String
307307
}
308308

@@ -337,7 +337,7 @@ abstract class VCBooleanCasePrototype(underlying: Boolean) extends VCBooleanProt
337337
underlying.hashCode()
338338
}
339339

340-
override final def toString: String = {
340+
override def toString: String = {
341341
s"$productPrefix($underlying)"
342342
}
343343
}
@@ -353,7 +353,7 @@ abstract class VCBooleanCompanion[T <: VCBooleanPrototype] extends ClassTag[T] {
353353

354354
final def _1$extension(underlying: Boolean) = underlying
355355
final def hashCode$extension(underlying: Boolean) = underlying.hashCode()
356-
final def toString$extension(underlying: Boolean) = s"${productPrefix$extension(underlying)}($underlying)"
356+
def toString$extension(underlying: Boolean) = s"${productPrefix$extension(underlying)}($underlying)"
357357
def productPrefix$extension(underlying: Boolean): String
358358
}
359359

@@ -390,7 +390,7 @@ abstract class VCCharCasePrototype(underlying: Char) extends VCCharPrototype(und
390390
underlying.hashCode()
391391
}
392392

393-
override final def toString: String = {
393+
override def toString: String = {
394394
s"$productPrefix($underlying)"
395395
}
396396

@@ -408,7 +408,7 @@ abstract class VCCharCompanion[T <: VCCharPrototype] extends ClassTag[T] {
408408

409409
final def _1$extension(underlying: Char) = underlying
410410
final def hashCode$extension(underlying: Char) = underlying.hashCode()
411-
final def toString$extension(underlying: Char) = s"${productPrefix$extension(underlying)}($underlying)"
411+
def toString$extension(underlying: Char) = s"${productPrefix$extension(underlying)}($underlying)"
412412
def productPrefix$extension(underlying: Char): String
413413
}
414414

@@ -443,7 +443,7 @@ abstract class VCByteCasePrototype(underlying: Byte) extends VCBytePrototype(und
443443
underlying.hashCode()
444444
}
445445

446-
override final def toString: String = {
446+
override def toString: String = {
447447
s"$productPrefix($underlying)"
448448
}
449449
}
@@ -459,7 +459,7 @@ abstract class VCByteCompanion[T <: VCBytePrototype] extends ClassTag[T] {
459459

460460
final def _1$extension(underlying: Byte) = underlying
461461
final def hashCode$extension(underlying: Byte) = underlying.hashCode()
462-
final def toString$extension(underlying: Byte) = s"${productPrefix$extension(underlying)}($underlying)"
462+
def toString$extension(underlying: Byte) = s"${productPrefix$extension(underlying)}($underlying)"
463463
def productPrefix$extension(underlying: Byte): String
464464
}
465465

0 commit comments

Comments
 (0)