diff options
-rw-r--r-- | src/dotty/runtime/vc/VCArrayClone.java | 9 | ||||
-rw-r--r-- | src/dotty/runtime/vc/VCPrototype.scala | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/dotty/runtime/vc/VCArrayClone.java b/src/dotty/runtime/vc/VCArrayClone.java new file mode 100644 index 000000000..0b0fa40ce --- /dev/null +++ b/src/dotty/runtime/vc/VCArrayClone.java @@ -0,0 +1,9 @@ +package dotty.runtime.vc; + +/** + * Exists for the sole reason of Scala not accepting such trait + */ + +interface VCArrayClone { + Object clone(); +} diff --git a/src/dotty/runtime/vc/VCPrototype.scala b/src/dotty/runtime/vc/VCPrototype.scala index b9c931bbc..a91654864 100644 --- a/src/dotty/runtime/vc/VCPrototype.scala +++ b/src/dotty/runtime/vc/VCPrototype.scala @@ -3,7 +3,8 @@ package dotty.runtime.vc abstract class VCPrototype { } -abstract class VCArrayPrototype[T <: VCPrototype] extends Cloneable { + +abstract class VCArrayPrototype[T <: VCPrototype] extends Object with Cloneable with VCArrayClone { def apply(idx: Int): Object def update(idx: Int, el: T): Unit def length: Int |