core.match

variable binding fails with :or guard

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojure 1.6.0, Emacs 24.2, OS X.

Description

The following works
fine:

```
(match ['F] [('F :as x)] x)
;; => F
```

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

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: