diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-30 17:16:04 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-30 17:16:04 +0000 |
commit | 1e46957a4f69c0387e5098e9839f670f5201a79e (patch) | |
tree | 95ffbd29d1fc348a587d1922a3c013cbbad9c461 /sources/scalac/backend | |
parent | c84e4be5ce1cccc55affc1898bae3fddcba216a6 (diff) | |
download | scala-1e46957a4f69c0387e5098e9839f670f5201a79e.tar.gz scala-1e46957a4f69c0387e5098e9839f670f5201a79e.tar.bz2 scala-1e46957a4f69c0387e5098e9839f670f5201a79e.zip |
- Fixed, in Definitions, type of primitive type...
- Fixed, in Definitions, type of primitive types and array types after
erasure
Diffstat (limited to 'sources/scalac/backend')
-rw-r--r-- | sources/scalac/backend/Primitives.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/backend/Primitives.java b/sources/scalac/backend/Primitives.java index a48be3a333..c636cc66a7 100644 --- a/sources/scalac/backend/Primitives.java +++ b/sources/scalac/backend/Primitives.java @@ -319,7 +319,8 @@ public class Primitives { } private Symbol getBoxArray(Symbol[] alts, Type type) { - return getBoxValue(alts, definitions.ARRAY_TYPE(type)); + Type array = definitions.ARRAY_CLASS.type(); + return getBoxValue(alts, Type.appliedType(array, new Type[]{type})); } private Symbol getUniqueTerm(Symbol owner, Name name) { |