diff options
author | Martin Odersky <odersky@gmail.com> | 2014-09-12 02:28:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-09-12 02:28:59 +0200 |
commit | bb5b049076ca733ea42e528ecef81de438a15b19 (patch) | |
tree | 3fcdf1c91c476725355e768d86c04593089d9922 /src/dotty/tools/dotc/core | |
parent | f05dafedf2c63bb4aa1830b600416f80c984dce6 (diff) | |
download | dotty-bb5b049076ca733ea42e528ecef81de438a15b19.tar.gz dotty-bb5b049076ca733ea42e528ecef81de438a15b19.tar.bz2 dotty-bb5b049076ca733ea42e528ecef81de438a15b19.zip |
Fix handling of Array#clone in Erasure
Treat clone like the other primitive array operations, ensure it
returns a JavaArray.
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r-- | src/dotty/tools/dotc/core/NameOps.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala index 74673235a..b18f708ed 100644 --- a/src/dotty/tools/dotc/core/NameOps.scala +++ b/src/dotty/tools/dotc/core/NameOps.scala @@ -201,6 +201,7 @@ object NameOps { case nme.apply => nme.primitive.arrayApply case nme.length => nme.primitive.arrayLength case nme.update => nme.primitive.arrayUpdate + case nme.clone_ => nme.clone_ case nme.CONSTRUCTOR => nme.primitive.arrayConstructor } |