aboutsummaryrefslogtreecommitdiff
path: root/java/com/google/turbine/types/Canonicalize.java
diff options
context:
space:
mode:
authorcushon <cushon@google.com>2019-10-14 14:14:41 -0700
committerKurt Alfred Kluever <kak@google.com>2019-10-15 08:43:29 -0400
commitbf52692b4f29beb5824a2f8152f56c3c3d8f9e08 (patch)
treeb0371d5beac77151b498b4f2c772aa7295153bee /java/com/google/turbine/types/Canonicalize.java
parentc30f61b6b37252fe8dafb6aca226b697d618ef7e (diff)
downloadturbine-bf52692b4f29beb5824a2f8152f56c3c3d8f9e08.tar.gz
Handle more ERROR_TYs in canonicalization pass
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=274657681
Diffstat (limited to 'java/com/google/turbine/types/Canonicalize.java')
-rw-r--r--java/com/google/turbine/types/Canonicalize.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/google/turbine/types/Canonicalize.java b/java/com/google/turbine/types/Canonicalize.java
index 3822047..22df069 100644
--- a/java/com/google/turbine/types/Canonicalize.java
+++ b/java/com/google/turbine/types/Canonicalize.java
@@ -290,6 +290,7 @@ public class Canonicalize {
return instantiateWildTy(mapping, (WildTy) type);
case PRIM_TY:
case VOID_TY:
+ case ERROR_TY:
return type;
case CLASS_TY:
return instantiateClassTy(mapping, (ClassTy) type);