I have tried for two days to figure out what is causing the compiler to throw the following when compiling a macro:
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at clojure.lang.Compiler.analyzeSeq(Compiler.java:6390) at clojure.lang.Compiler.analyze(Compiler.java:6216) Any ideas? Important note: I can take the code in question: > (fact > 1 => 1 > (provided > ..service.. =contains=> {:status 200})) ... and macroexpand it to get this: > (do (midje.util.report/fact-begins) > (midje.internal-ideas.wrapping/midje-wrapped > (midje.internal-ideas.fakes/with-installed-fakes > (midje.ideas.background/background-fakes) (do > (midje.internal-ideas.wrapping/midje-wrapped (midje.semi-sweet/expect 1 => 1 > :position (midje.internal-ideas.file-position/line-number-known 16) > (midje.semi-sweet/data-fake ..service.. =contains=> {:status 200} :position > (midje.internal-ideas.file-position/line-number-known 17))))))) > (midje.util.report/fact-checks-out?)) That compiles perfectly fine. ----- Brian Marick, Artisanal Labrador Now working at http://path11.com Contract programming in Ruby and Clojure Occasional consulting on Agile -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en