Have optimizer ignore contract definitions.

This bug was hidden by a bug in syntax/parse.

original commit: 80fba7f42d98255b1ab8a8e1c48d62f17303bf11
This commit is contained in:
Vincent St-Amour 2013-11-08 15:59:40 -05:00
parent df0d87c948
commit 08adb59b66

View File

@ -78,12 +78,14 @@
#:typed-side #f
#:kind kind
(type->contract-fail typ prop))])
(quasisyntax/loc
stx
(define-values (n)
(recursive-contract
cnt
#,(contract-kind->keyword kind))))))]
(ignore-property ; should be ignored by the optimizer
(quasisyntax/loc
stx
(define-values (n)
(recursive-contract
cnt
#,(contract-kind->keyword kind))))
#t)))]
[_ (int-err "should never happen - not a define-values: ~a"
(syntax->datum stx))]))