<< Back to previous view

[MATCH-61] Exception thrown when matching using :seq when there is a seq call in the tail of the occurrences Created: 22/Jun/12  Updated: 22/Jun/12

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

Type: Defect Priority: Major
Reporter: Emma Tosch Assignee: David Nolen
Resolution: Unresolved Votes: 0
Labels: bug, seq
Environment:

with Clojure 1.3



 Description   

<iframe style="width: 648px; height: 400px; border: 0px;" src="http://refheap.com/paste/3294/framed" >

I also tested with three occurrences. When there is a seq call in the second occurrence onward a RuntimeException is thrown.



 Comments   
Comment by Emma Tosch [ 22/Jun/12 5:33 PM ]

https://gist.github.com/626088b01817ac638fae
Two expressions, macro-expanded. The only difference between the expressions is that the second occurrence in the second expression is seq'ed. The second let is the one throwing the exception; it's the one with the binding

(clojure.core/let [q_tail_3472 q_tail_3472
q_head_3471 q_head_3471
ocr-3470 (seq y)
z z]
...)





Generated at Sat May 25 13:29:29 CDT 2013 using JIRA 4.4#649-r158309.