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

0 votes
in core.match by

The following works
fine:

(match (link: 'F) (link: ('F :as x)) x) ;; => F

But fails when I try to use an :or guard:

(match (link: 'F) (link: ((:or 'F 'T) :as x)) x) ;; CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/MATCH-106 (reported by alex+import)
...