diff options
author | paltherr <paltherr@epfl.ch> | 2003-04-02 11:35:11 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-04-02 11:35:11 +0000 |
commit | 868b0f94f0398cfcbf5745383bd3b51a911eb557 (patch) | |
tree | c10e0d452c006ed908627e1c1d92a9eedd08f210 /sources | |
parent | d91518092ea08a22e4461fa32d1e35cc50e55d76 (diff) | |
download | scala-868b0f94f0398cfcbf5745383bd3b51a911eb557.tar.gz scala-868b0f94f0398cfcbf5745383bd3b51a911eb557.tar.bz2 scala-868b0f94f0398cfcbf5745383bd3b51a911eb557.zip |
- Fixed erasure of is and as applied to values ...
- Fixed erasure of is and as applied to values of type Any.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/transformer/Erasure.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/scalac/transformer/Erasure.java b/sources/scalac/transformer/Erasure.java index 551eb2380d..9500c8e5ca 100644 --- a/sources/scalac/transformer/Erasure.java +++ b/sources/scalac/transformer/Erasure.java @@ -416,6 +416,7 @@ public class Erasure extends Transformer implements Modifiers { Symbol primSym = (sym == definitions.AS) ? primitives.getUnboxValueSymbol(tp) : primitives.getInstanceTestSymbol(tp); + qual1 = coerce(qual1, primSym.owner().type()); return gen.Select(qual1, primSym); } else return copy.TypeApply(tree, transform(fun), transform(args)) |