Skip to content

Commit

Permalink
consumer generator type check
Browse files Browse the repository at this point in the history
  • Loading branch information
loskool committed Jul 10, 2020
1 parent efe9a7d commit 9882e08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gtwiwtg.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ A -- 4
`(destructuring-bind ,var-exp (next ,gen-var) ,@body)
`(let ((,var-exp (next ,gen-var))) ,@body))))
`(let ((,gen-var ,gen))
(assert (typep ,gen-var 'gtwiwtg::generator!))
(loop
:while (has-next-p ,gen-var)
:do
Expand Down

0 comments on commit 9882e08

Please sign in to comment.