fix box/c-as-expression
closes PR 15341
This commit is contained in:
parent
753d97335c
commit
6983adc31d
|
@ -55,6 +55,9 @@
|
||||||
'box/c7
|
'box/c7
|
||||||
'(set-box! (contract (box/c boolean? any/c) (box 12) 'pos 'neg) 11))
|
'(set-box! (contract (box/c boolean? any/c) (box 12) 'pos 'neg) 11))
|
||||||
|
|
||||||
|
(test/pos-blame
|
||||||
|
'box/c8
|
||||||
|
'(contract ((values box/c) any/c) #f 'pos 'neg))
|
||||||
|
|
||||||
(test/neg-blame
|
(test/neg-blame
|
||||||
'box/c-with-cons/c-inside
|
'box/c-with-cons/c-inside
|
||||||
|
|
|
@ -184,7 +184,7 @@
|
||||||
[x
|
[x
|
||||||
(identifier? #'x)
|
(identifier? #'x)
|
||||||
(syntax-property
|
(syntax-property
|
||||||
(syntax/loc stx box/c)
|
(syntax/loc stx box/c/proc)
|
||||||
'racket/contract:contract
|
'racket/contract:contract
|
||||||
(vector (gensym 'ctc) (list #'x) null))]
|
(vector (gensym 'ctc) (list #'x) null))]
|
||||||
[(b/c arg ...)
|
[(b/c arg ...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user