Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

exempt records and deftypes from consideration as empty collection co…

…nstants, as they are currently exempt as non-empty map constants
commit 1d5237f9d7db0bc5f6e929330108d016ac7bf76c 1 parent 2344de2
@richhickey richhickey authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/jvm/clojure/lang/Compiler.java
View
5 src/jvm/clojure/lang/Compiler.java
@@ -6666,7 +6666,10 @@ else if(fclass == String.class)
return new StringExpr(((String) form).intern());
// else if(fclass == Character.class)
// return new CharExpr((Character) form);
- else if(form instanceof IPersistentCollection && ((IPersistentCollection) form).count() == 0)
+ else if(form instanceof IPersistentCollection
+ && !(form instanceof IRecord)
+ && !(form instanceof IType)
+ && ((IPersistentCollection) form).count() == 0)
{
Expr ret = new EmptyExpr(form);
if(RT.meta(form) != null)
Please sign in to comment.
Something went wrong with that request. Please try again.