diff options
author | Martin Odersky <odersky@gmail.com> | 2003-03-13 16:18:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-03-13 16:18:29 +0000 |
commit | ab6e0b35fe9524e4a6c1ceff58ca0cc198a54c48 (patch) | |
tree | d21bac494353eaccd8cc703198cde3ffc5e0ff5d /sources/scalac/symtab/Symbol.java | |
parent | 414752545523175d36055d8731bbdace82d807ca (diff) | |
download | scala-ab6e0b35fe9524e4a6c1ceff58ca0cc198a54c48.tar.gz scala-ab6e0b35fe9524e4a6c1ceff58ca0cc198a54c48.tar.bz2 scala-ab6e0b35fe9524e4a6c1ceff58ca0cc198a54c48.zip |
*** empty log message ***
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; } } |