diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-28 00:19:41 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-28 00:19:41 +0000 |
commit | 180d7c2fecac671e0afcd931dfd091e0b88034fc (patch) | |
tree | f7a8e1cb39e5b13fa3b15edbb982eb967a901d64 /sources/scalac/symtab | |
parent | 12bd290e160247877e03780de47fcd09e3b8f2bb (diff) | |
download | scala-180d7c2fecac671e0afcd931dfd091e0b88034fc.tar.gz scala-180d7c2fecac671e0afcd931dfd091e0b88034fc.tar.bz2 scala-180d7c2fecac671e0afcd931dfd091e0b88034fc.zip |
- Fixed Symbol.thisType() for post erasure phases
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 05c7f9de7b..e46aac478f 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -1776,6 +1776,8 @@ public class ClassSymbol extends TypeSymbol { } public Type thisType() { + Global global = Global.instance; + if (global.currentPhase.id > global.PHASE.ERASURE.id()) return type(); return thistp; } |