summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/SymbolTablePrinter.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-06-11 12:01:19 +0000
committerMartin Odersky <odersky@gmail.com>2003-06-11 12:01:19 +0000
commitc055dc83e3ad095ec287d19d0b0c620241c70580 (patch)
tree847db3cd56e35920233bae54ca2b8d37ebc4e65f /sources/scalac/symtab/SymbolTablePrinter.java
parent34cdd069a106b0889594f3c784e39b1ce1d8f3af (diff)
downloadscala-c055dc83e3ad095ec287d19d0b0c620241c70580.tar.gz
scala-c055dc83e3ad095ec287d19d0b0c620241c70580.tar.bz2
scala-c055dc83e3ad095ec287d19d0b0c620241c70580.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/SymbolTablePrinter.java')
-rw-r--r--sources/scalac/symtab/SymbolTablePrinter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/scalac/symtab/SymbolTablePrinter.java b/sources/scalac/symtab/SymbolTablePrinter.java
index fdfeb0d95a..5b829d4722 100644
--- a/sources/scalac/symtab/SymbolTablePrinter.java
+++ b/sources/scalac/symtab/SymbolTablePrinter.java
@@ -513,14 +513,15 @@ public class SymbolTablePrinter {
case ThisType(Symbol sym):
if (sym == Symbol.NONE) return print("<local>.this");
if (sym.isRoot()) return print("<root>.this");
- if (sym.isAnonymousClass()) return print("this");
+ if ((sym.isAnonymousClass() || sym.isCompoundSym()) && !global.debug)
+ return print("this");
return printSymbolName(sym).print(".this");
case TypeRef(Type pre, Symbol sym, Type[] args):
if (sym.isRoot()) return print("<root>");
if (!global.debug) {
if (type.isFunctionType())
return printFunctionType(args);
- if (sym.isAnonymousClass())
+ if (sym.isAnonymousClass() || sym.isCompoundSym())
return printTemplateType(pre.memberInfo(sym).parents());
}
printPrefix(pre).printSymbolName(sym);