Skip to content

Commit bb1d746

Browse files
committed
VCPrototype: fix the toString of VCXArray
It should be "[Foo" not "[class Foo"
1 parent 7e49461 commit bb1d746

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
@@ -67,7 +67,7 @@ final class VCFloatArray[T <: VCFloatPrototype] (val arr: Array[Float], val ct:
6767
}
6868

6969
override def toString: String = {
70-
"[" + ct.runtimeClass
70+
"[" + ct.toString
7171
}
7272
}
7373

@@ -120,7 +120,7 @@ final class VCObjectArray[T <: VCObjectPrototype] (val arr: Array[Object], val c
120120
}
121121

122122
override def toString: String = {
123-
"[" + ct.runtimeClass
123+
"[" + ct.toString
124124
}
125125
}
126126

@@ -173,7 +173,7 @@ final class VCShortArray[T <: VCShortPrototype] (val arr: Array[Short], val ct:
173173
}
174174

175175
override def toString: String = {
176-
"[" + ct.runtimeClass
176+
"[" + ct.toString
177177
}
178178

179179
}
@@ -227,7 +227,7 @@ final class VCLongArray[T <: VCLongPrototype] (val arr: Array[Long], val ct: VCL
227227
}
228228

229229
override def toString: String = {
230-
"[" + ct.runtimeClass
230+
"[" + ct.toString
231231
}
232232
}
233233

@@ -278,7 +278,7 @@ final class VCIntArray[T <: VCIntPrototype] (val arr: Array[Int], val ct: VCIntC
278278
}
279279

280280
override def toString: String = {
281-
"[" + ct.runtimeClass
281+
"[" + ct.toString
282282
}
283283
}
284284

@@ -329,7 +329,7 @@ final class VCDoubleArray[T <: VCDoublePrototype] (val arr: Array[Double], val c
329329
}
330330

331331
override def toString: String = {
332-
"[" + ct.runtimeClass
332+
"[" + ct.toString
333333
}
334334
}
335335

@@ -382,7 +382,7 @@ final class VCBooleanArray[T <: VCBooleanPrototype] (val arr: Array[Boolean], va
382382
}
383383

384384
override def toString: String = {
385-
"[" + ct.runtimeClass
385+
"[" + ct.toString
386386
}
387387
}
388388

@@ -435,7 +435,7 @@ final class VCCharArray[T <: VCCharPrototype] (val arr: Array[Char], val ct: VCC
435435
}
436436

437437
override def toString: String = {
438-
"[" + ct.runtimeClass
438+
"[" + ct.toString
439439
}
440440
}
441441

@@ -486,7 +486,7 @@ final class VCByteArray[T <: VCBytePrototype] (val arr: Array[Byte], val ct: VCB
486486
}
487487

488488
override def toString: String = {
489-
"[" + ct.runtimeClass
489+
"[" + ct.toString
490490
}
491491

492492
}

0 commit comments

Comments
 (0)