Fix syntax/c. Closes PR13447.

This commit is contained in:
Eric Dobson 2013-01-26 16:08:23 -08:00 committed by Robby Findler
parent 113077dc70
commit 10655a8373
2 changed files with 5 additions and 1 deletions

View File

@ -814,7 +814,7 @@
#:projection list/c-chaperone/other-projection))
(define/subexpression-pos-prop (syntax/c ctc-in)
(let ([ctc (coerce-contract 'syntax/c ctc-in)])
(let ([ctc (coerce-flat-contract 'syntax/c ctc-in)])
(flat-named-contract
(build-compound-type-name 'syntax/c ctc)
(let ([pred (flat-contract-predicate ctc)])

View File

@ -9493,6 +9493,10 @@
'pos
'neg))
(test/no-error '(syntax/c (list/c #f)))
(contract-error-test 'syntax/c-non-flat '(syntax/c (vector/c #f))
(λ (x) (regexp-match #rx"expected a flat contract" (exn-message x))))
;
;