Welcome! Please see the About page for a little more info on how this works.

+3 votes
in Compiler by
edited by

These two expressions have a different result:

((with-meta
   ^:any (fn self []
           (meta self))
   {:foo :bar}))

((with-meta
   (fn self []
           (meta self))
   {:foo :bar}))

The former returns {:foo :bar} the latter returns nil.

I'm guessing this is a bug, perhaps an unexpected consequence of an optimization?

(Filed: https://clojure.atlassian.net/browse/CLJ-2539)

1 Answer

+1 vote
by

I filed this as a ticket and added the jira to the description above.

...