OrPattern (:or 1 2) cannot be aot-compiled

Description

I have a match expression containing an (:or :x :y) and this seems to trip up AOT compilation when running "lein uberjar".

At least I get a

Exception in thread "main"
java.lang.IllegalArgumentException: No method in multimethod 'to-source' for dispatch value: class clojure.core.match.OrPattern

Works fine otherwise, just "lein uberjar" fails.

Environment

core.match 0.2.0-rc5

Activity

Show:
David Nolen
April 8, 2014, 6:11 PM

That is not the latest version of core.match. Please demonstrate that 0.2.1 has the issue.

Ning Sun
April 21, 2014, 12:08 PM

I'm using 0.2.1 and it's still broken.

@Zane, you can just update core.match to 0.2.1 in your project.clj

David Nolen
April 21, 2014, 1:11 PM

I was able to determine that this was in fact still an issue and fixed it in master https://github.com/clojure/core.match/commit/23adaf466fd026f9d4a12443032037dfc006b901

Ning Sun
September 26, 2014, 9:31 AM

Any chance to issue a release for this fix? Thanks!

David Nolen
September 26, 2014, 12:10 PM

It's already in a release - 0.2.2

Assignee

David Nolen

Reporter

Thomas Heller

Labels

None

Approval

None

Patch

None

Priority

Minor
Configure