From 168da72d528d2bf7a0436bef2452ce3a9abcda7e Mon Sep 17 00:00:00 2001 From: schinz Date: Fri, 21 Feb 2003 09:23:29 +0000 Subject: - bug fix: replaced pointer-based type equality... - bug fix: replaced pointer-based type equality tests by calls to isSameAs() --- sources/scalac/symtab/Type.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/scalac/symtab') diff --git a/sources/scalac/symtab/Type.java b/sources/scalac/symtab/Type.java index 0fcca1acd2..8e44f1653a 100644 --- a/sources/scalac/symtab/Type.java +++ b/sources/scalac/symtab/Type.java @@ -1994,7 +1994,7 @@ public class Type implements Modifiers, Kinds, TypeTags { return ""; case ThisType(Symbol sym): if (sym.isRoot()) return ".this.type"; - else if (this == localThisType) return ".this.type"; + else if (isSameAs(localThisType)) return ".this.type"; else { Type this1 = (Global.instance.debug) ? this : expandModuleThis(); if (this1 == this) return sym.nameString() + ".this.type"; @@ -2072,7 +2072,7 @@ public class Type implements Modifiers, Kinds, TypeTags { } private String prefixString() { - if ((this == localThisType || symbol().isRoot()) && !Global.instance.debug) { + if ((isSameAs(localThisType) || symbol().isRoot()) && !Global.instance.debug) { return ""; } else { String spre = toString(); -- cgit v1.2.3