Aot compiling metaconstants

marick edited this page Feb 28, 2013 · 2 revisions
Clone this wiki locally

In most cases, ahead-of-time (AOT) compiling Midje facts should work, even for facts that contain metaconstants. However, there are a few edge cases where the Clojure compiler makes assumptions that don't work for metaconstants. If your tests that use metaconstants don't pass when AOT-compiled, predeclare the metaconstants before use:

    (metaconstants ..m.. .mc.)