Fix boolean/pattern confusion for term generation..
This commit is contained in:
parent
44e324db12
commit
56a313caa0
|
@ -56,7 +56,7 @@
|
||||||
(call/ec (λ (fail)
|
(call/ec (λ (fail)
|
||||||
(hash-ref term-e rep-lvar
|
(hash-ref term-e rep-lvar
|
||||||
(λ () (let ([t (recur pat)])
|
(λ () (let ([t (recur pat)])
|
||||||
(unless t (fail #f))
|
(unless (not-failed? t) (fail (unif-fail)))
|
||||||
(hash-set! term-e rep-lvar t)
|
(hash-set! term-e rep-lvar t)
|
||||||
t)))))]
|
t)))))]
|
||||||
[`(cstr (,nts ...) ,pat)
|
[`(cstr (,nts ...) ,pat)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user