diff options
author | paltherr <paltherr@epfl.ch> | 2004-07-06 07:43:40 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-07-06 07:43:40 +0000 |
commit | b5127bbfea6df39af5db3dc45bb9f7e698acb3f1 (patch) | |
tree | 3ffe6ca6b9dbe2e67561c6bbab7a7bef89e32c59 /sources/scalac | |
parent | e2885f986febaa88c5002365aea00fd41cfffb04 (diff) | |
download | scala-b5127bbfea6df39af5db3dc45bb9f7e698acb3f1.tar.gz scala-b5127bbfea6df39af5db3dc45bb9f7e698acb3f1.tar.bz2 scala-b5127bbfea6df39af5db3dc45bb9f7e698acb3f1.zip |
- Cleaned class Array
- Fixed missing cast in Erasure.coerce
Diffstat (limited to 'sources/scalac')
-rw-r--r-- | sources/scalac/transformer/Erasure.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/Erasure.java b/sources/scalac/transformer/Erasure.java index 4189834d1b..d200aab112 100644 --- a/sources/scalac/transformer/Erasure.java +++ b/sources/scalac/transformer/Erasure.java @@ -327,7 +327,7 @@ public class Erasure extends GenTransformer implements Modifiers { return unbox(coerce(tree, boxUnboxedType(pt)), pt); } else if (isUnboxedArrayType(pt)) { if (tree.type.symbol() == definitions.ARRAY_CLASS) - return unbox(tree, pt); + return coerce(unbox(tree, pt), pt); } else if (pt.symbol() == definitions.ARRAY_CLASS) { Tree boxtree = gen.mkGlobalRef(tree.pos, primitives.BOX__ARRAY); return gen.mkApply_V(boxtree, new Tree[]{tree}); |