summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scalac/atree/AConstant.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/atree/AConstant.java b/sources/scalac/atree/AConstant.java
index 4abd485f66..9bb2eb29b4 100644
--- a/sources/scalac/atree/AConstant.java
+++ b/sources/scalac/atree/AConstant.java
@@ -270,6 +270,8 @@ public class AConstant {
if (this == that) return true;
if (null == that) return false;
switch (this) {
+ case UNIT:
+ return false;
case BOOLEAN(boolean ivalue):
switch (that) {
case BOOLEAN(boolean avalue):
@@ -333,6 +335,10 @@ public class AConstant {
default:
return false;
}
+ case NULL:
+ return false;
+ case ZERO:
+ return false;
default:
throw Debug.abort("unknown case", this);
}