diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-27 10:08:25 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-27 10:08:25 +0000 |
commit | 22601538e7dcc7005f46890993227e99a47020b5 (patch) | |
tree | edc5790158a59a05e8e4ebfec788f8bc4ecc41ec | |
parent | ca4f0683b1d9a9103ff8f1a1f7b3e0f681b9e6d2 (diff) | |
download | scala-22601538e7dcc7005f46890993227e99a47020b5.tar.gz scala-22601538e7dcc7005f46890993227e99a47020b5.tar.bz2 scala-22601538e7dcc7005f46890993227e99a47020b5.zip |
- Fixed return type of compund type primary con...
- Fixed return type of compund type primary constructors Fixed isSubType
- for UnboxedArrayTypes
-rw-r--r-- | sources/scalac/symtab/Type.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Type.java b/sources/scalac/symtab/Type.java index 3d97355a2b..08b2124640 100644 --- a/sources/scalac/symtab/Type.java +++ b/sources/scalac/symtab/Type.java @@ -160,7 +160,7 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags { SYNTHETIC | ABSTRACT); res.tsym.setInfo(res); res.tsym.primaryConstructor().setInfo( - Type.MethodType(Symbol.EMPTY_ARRAY, Type.NoType)); + Type.MethodType(Symbol.EMPTY_ARRAY, Type.TypeRef(res.tsym.owner().thisType(), res.tsym, Type.EMPTY_ARRAY))); return res; } @@ -1804,6 +1804,11 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags { i++; } break; + + case UnboxedArrayType(_): + if (Global.instance.definitions.JAVA_OBJECT_TYPE.isSubType(that)) + return true; + // !!! we should probably also test for Clonable, Serializable, ... } switch (that) { |