[java8] don't crash on intersection types

This commit is contained in:
Roel Spilker committed 2014-05-08 01:08:56 +02:00
1 parent 844995fc60
commit 8bfed5d51c
1 file changed
+5 -1
@@ -166,7 +166,11 @@ public class PatchVal {
resolved = null;
}
if (resolved != null) {
replacement = makeType(resolved, local.type, false);
try {
replacement = makeType(resolved, local.type, false);
} catch (Exception e) {
// Some type thing failed. It might be an IntersectionType
}
}
}