Have optimizer ignore contract definitions.
This bug was hidden by a bug in syntax/parse.
This commit is contained in:
parent
2d6fc20350
commit
80fba7f42d
|
@ -78,12 +78,14 @@
|
||||||
#:typed-side #f
|
#:typed-side #f
|
||||||
#:kind kind
|
#:kind kind
|
||||||
(type->contract-fail typ prop))])
|
(type->contract-fail typ prop))])
|
||||||
(quasisyntax/loc
|
(ignore-property ; should be ignored by the optimizer
|
||||||
stx
|
(quasisyntax/loc
|
||||||
(define-values (n)
|
stx
|
||||||
(recursive-contract
|
(define-values (n)
|
||||||
cnt
|
(recursive-contract
|
||||||
#,(contract-kind->keyword kind))))))]
|
cnt
|
||||||
|
#,(contract-kind->keyword kind))))
|
||||||
|
#t)))]
|
||||||
[_ (int-err "should never happen - not a define-values: ~a"
|
[_ (int-err "should never happen - not a define-values: ~a"
|
||||||
(syntax->datum stx))]))
|
(syntax->datum stx))]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user