Skip to content

Commit 744ffb5

Browse files
committed
Introduce VCArray.clone in scala.
It can be done with non-abstract rhs of method.
1 parent cb8fa82 commit 744ffb5

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/dotty/runtime/vc/VCArrayClone.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/dotty/runtime/vc/VCPrototype.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ abstract class VCPrototype {
44
}
55

66

7-
abstract class VCArrayPrototype[T <: VCPrototype] extends Object with Cloneable with VCArrayClone {
7+
abstract class VCArrayPrototype[T <: VCPrototype] extends Object with Cloneable {
88
def apply(idx: Int): Object
99
def update(idx: Int, el: T): Unit
1010
def length: Int
11+
override def clone: Object = super.clone()
1112
}

0 commit comments

Comments
 (0)