Fix boolean/pattern confusion for term generation..

This commit is contained in:
Burke Fetscher 2013-08-25 22:13:13 -05:00
parent 44e324db12
commit 56a313caa0

View File

@ -56,7 +56,7 @@
(call/ec (λ (fail)
(hash-ref term-e rep-lvar
(λ () (let ([t (recur pat)])
(unless t (fail #f))
(unless (not-failed? t) (fail (unif-fail)))
(hash-set! term-e rep-lvar t)
t)))))]
[`(cstr (,nts ...) ,pat)