diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-29 19:53:47 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-29 19:53:47 +0000 |
commit | 8cf49a62840b8fe049f0363bb602c28f2ec19bf0 (patch) | |
tree | 50a982b9902b067043ba9c31d073f1c94e169f22 | |
parent | c81ec5f07f6fb7840f2867131dff383d8852de93 (diff) | |
download | scala-8cf49a62840b8fe049f0363bb602c28f2ec19bf0.tar.gz scala-8cf49a62840b8fe049f0363bb602c28f2ec19bf0.tar.bz2 scala-8cf49a62840b8fe049f0363bb602c28f2ec19bf0.zip |
- Removed dependency on Type.expandModuleThis
-rw-r--r-- | sources/scalac/symtab/SymbolTablePrinter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/scalac/symtab/SymbolTablePrinter.java b/sources/scalac/symtab/SymbolTablePrinter.java index 83b45f9491..d9fb0ab745 100644 --- a/sources/scalac/symtab/SymbolTablePrinter.java +++ b/sources/scalac/symtab/SymbolTablePrinter.java @@ -404,9 +404,10 @@ public class SymbolTablePrinter { /** Returns the type to print for the given type (non-transitive). */ public Type getTypeToPrintForType0(Type type) { switch (type) { - case ThisType(_): - if (global.debug) return type; - return type.expandModuleThis(); + case ThisType(Symbol clasz): + if (global.debug || !clasz.isModuleClass()) return type; + Type prefix = getTypeToPrintForType(clasz.owner().thisType()); + return Type.singleType(prefix, clasz.module()); case SingleType(_, Symbol sym): if (global.debug) return type; if (sym.isSynthetic()) return type.widen(); |