summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Type.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-04-04 16:45:07 +0000
committerpaltherr <paltherr@epfl.ch>2004-04-04 16:45:07 +0000
commitdbbff1f3e46ceb749d8265399b489032930f55d2 (patch)
tree54fa70f26845857f09f702a204a83fd678b0819b /sources/scalac/symtab/Type.java
parentb88fd07ae63caab830d3cd457dcefc3ed69073ed (diff)
downloadscala-dbbff1f3e46ceb749d8265399b489032930f55d2.tar.gz
scala-dbbff1f3e46ceb749d8265399b489032930f55d2.tar.bz2
scala-dbbff1f3e46ceb749d8265399b489032930f55d2.zip
- Fixed error tests to use isError
Diffstat (limited to 'sources/scalac/symtab/Type.java')
-rw-r--r--sources/scalac/symtab/Type.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/symtab/Type.java b/sources/scalac/symtab/Type.java
index 7a1b8cb3db..8fb835786b 100644
--- a/sources/scalac/symtab/Type.java
+++ b/sources/scalac/symtab/Type.java
@@ -2703,7 +2703,7 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags {
int lubKind = syms[0].kind;
for (int i = 1; i < syms.length; i++) {
Symbol sym = syms[i];
- if (sym.kind == ERROR) return Symbol.NONE;
+ if (sym.isError()) return Symbol.NONE;
if (sym.isType() && sym.kind != lubKind) lubKind = TYPE;
}
if (lubKind == syms[0].kind && tps[0].isSameAsAll(tps)) {
@@ -3132,7 +3132,7 @@ public class Type implements Modifiers, Kinds, TypeTags, EntryTags {
public int hashCode() {
switch (this) {
case ErrorType:
- return ERROR;
+ return ERRORtpe;
case NoType:
return NOtpe;
case NoPrefix: