From 1e46957a4f69c0387e5098e9839f670f5201a79e Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 30 Oct 2003 17:16:04 +0000 Subject: - Fixed, in Definitions, type of primitive type... - Fixed, in Definitions, type of primitive types and array types after erasure --- sources/scalac/backend/Primitives.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sources/scalac/backend/Primitives.java') 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) { -- cgit v1.2.3