<< Back to previous view

[MATCH-18] IndexOutOfBound exception using '&' in vector matching. Created: 28/Sep/11  Updated: 28/Jul/13  Resolved: 28/Sep/11

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

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


 Description   

Following sample causes IndexOutOfBound exception.

(match [[:pow :x 2]]
[[:pow arg pow]] 0
[[:mult & args]] 1
:else 2)

Result: IndexOutOfBound

But if we delete '&' everything works fine:

(match [[:pow :x 2]]
[[:pow arg pow]] 0
[[:mult args]] 1
:else 2)

Result: 0



 Comments   
Comment by David Nolen [ 28/Sep/11 8:23 PM ]

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

Generated at Mon Nov 24 07:57:09 CST 2014 using JIRA 4.4#649-r158309.