From ca4f0683b1d9a9103ff8f1a1f7b3e0f681b9e6d2 Mon Sep 17 00:00:00 2001 From: paltherr Date: Mon, 27 Oct 2003 08:24:35 +0000 Subject: - Improved debug message - Fixed Relation.toString --- sources/scalac/symtab/Type.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sources') diff --git a/sources/scalac/symtab/Type.java b/sources/scalac/symtab/Type.java index 578aeb3451..3d97355a2b 100644 --- a/sources/scalac/symtab/Type.java +++ b/sources/scalac/symtab/Type.java @@ -756,7 +756,7 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags { default: if (sym1type.compareTo(symtype, relation)) return sym1; else { - if (Global.instance.debug) System.out.println(sym1 + sym1.locationString() + " is not" + relation + "to " + sym + sym.locationString() + " in " + pre + ", since " + sym1type + relation.toString(true) + symtype);//DEBUG + if (Global.instance.debug) System.out.println(sym1 + sym1.locationString() + " is not" + relation + "to " + sym + sym.locationString() + " as seen from " + pre + ", since " + sym1type + relation.toString(true) + symtype);//DEBUG return Symbol.NONE; } } @@ -1603,9 +1603,9 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags { } public String toString(boolean negate) { switch (this) { - case SubType : return negate ? " <= " : " !<= "; - case SameType : return negate ? " == " : " != "; - case SuperType: return negate ? " >= " : " !>= "; + case SubType : return negate ? " !<= " : " <= "; + case SameType : return negate ? " !== " : " = "; + case SuperType: return negate ? " !>= " : " >= "; default : throw Debug.abort("unknown relation", this); } } -- cgit v1.2.3