Skip to content

Commit

Permalink
fix box/c-as-expression
Browse files Browse the repository at this point in the history
closes PR 15341
  • Loading branch information
rfindler committed Aug 24, 2016
1 parent 753d973 commit 6983adc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkgs/racket-test/tests/racket/contract/box.rkt
Expand Up @@ -55,6 +55,9 @@
'box/c7
'(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
'box/c-with-cons/c-inside
Expand Down
2 changes: 1 addition & 1 deletion racket/collects/racket/contract/private/box.rkt
Expand Up @@ -184,7 +184,7 @@
[x
(identifier? #'x)
(syntax-property
(syntax/loc stx box/c)
(syntax/loc stx box/c/proc)
'racket/contract:contract
(vector (gensym 'ctc) (list #'x) null))]
[(b/c arg ...)
Expand Down

0 comments on commit 6983adc

Please sign in to comment.