diff options
Diffstat (limited to 'sources/scalac/symtab/Symbol.java')
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 2b31c87b96..1a3b5e2073 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -740,7 +740,9 @@ public abstract class Symbol implements Modifiers, Kinds { if (isVariable()) return "variable"; else if (isModule()) return "module"; else if (isConstructor()) return "constructor"; - else if (isInitializedMethod()) return "method"; + else if (isInitializedMethod() && + (Global.instance.debug || (flags & STABLE) == 0) ) + return "method"; else return "value"; default: return ""; } @@ -856,7 +858,7 @@ public abstract class Symbol implements Modifiers, Kinds { default: if (symtype.isSubType(sym1type)) return sym1; else { - if (Type.debugSwitch) System.out.println(this + locationString() + " does not override " + sym1 + sym1.locationString() + ", since " + symtype + " !<= " + sym1type);//DEBUG + if (Global.instance.debug) System.out.println(this + locationString() + " does not override " + sym1 + sym1.locationString() + ", since " + symtype + " !<= " + sym1type);//DEBUG return Symbol.NONE; } } |