<< Back to previous view

[MATCH-23] map pattern order bug Created: 03/Oct/11  Updated: 28/Jul/13  Resolved: 05/Oct/11

Status: Closed
Project: core.match
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: David Nolen Assignee: David Nolen
Resolution: Completed Votes: 0
Labels: None


 Description   

(let [x {:a 1 :b 2 :c 10 :d 30}]
(match [x]
[({:a _ :b _ :c _ :d _} :only [:a :b :c :d])] :a-1
[({:a _ :b 2} :only [:a :b])] :a0
[{:a 1 :c _}] :a1
[{:c 3 :d _ :e 4}] :a2
:else []))

returns :a1 instead of :a-1



 Comments   
Comment by David Nolen [ 05/Oct/11 9:39 PM ]

Fixed, https://github.com/clojure/core.match/commit/61e05362872d7f336e0c12c42765806a9e5b8fc4

Generated at Thu Apr 17 16:49:06 CDT 2014 using JIRA 4.4#649-r158309.