diff options
author | schinz <schinz@epfl.ch> | 2003-02-21 09:23:29 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2003-02-21 09:23:29 +0000 |
commit | 168da72d528d2bf7a0436bef2452ce3a9abcda7e (patch) | |
tree | 1969cebcb155886199263f3092e44cd4eac4d6a1 /sources/scalac/symtab | |
parent | af8181e6b33464138274f263a5ab1502571e5bc1 (diff) | |
download | scala-168da72d528d2bf7a0436bef2452ce3a9abcda7e.tar.gz scala-168da72d528d2bf7a0436bef2452ce3a9abcda7e.tar.bz2 scala-168da72d528d2bf7a0436bef2452ce3a9abcda7e.zip |
- bug fix: replaced pointer-based type equality...
- bug fix: replaced pointer-based type equality tests by calls to
isSameAs()
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Type.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 "<notype>"; case ThisType(Symbol sym): if (sym.isRoot()) return "<root>.this.type"; - else if (this == localThisType) return "<local>.this.type"; + else if (isSameAs(localThisType)) return "<local>.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(); |