Skip to content

Commit 9b85c15

Browse files
committed
refactor slightly
1 parent ac88041 commit 9b85c15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

typed-racket-lib/typed-racket/base-env/base-types.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
[HashTable (-poly (a b) (-HT a b))]
172172
[Promise (-poly (a) (-Promise a))]
173173
[Pair (-poly (a b) (-pair a b))]
174-
[Boxof (-poly (a) (make-Box a))]
174+
[Boxof (-poly (a) (-box a))]
175175
[Weak-Boxof (-poly (a) (-weak-box a))]
176176
[Channelof (-poly (a) (make-Channel a))]
177177
[Async-Channelof (-poly (a) (make-Async-Channel a))]

typed-racket-lib/typed-racket/types/abbrev.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
(define -App make-App)
5555
(define -mpair make-MPair)
5656
(define (-Param t1 [t2 t1]) (make-Param t1 t2))
57-
(define -box make-Box)
57+
(define (-box t) (make-Box t))
5858
(define -channel make-Channel)
5959
(define -async-channel make-Async-Channel)
6060
(define -thread-cell make-ThreadCell)
@@ -167,7 +167,7 @@
167167
(-mu e
168168
(Un -Null -Boolean -Symbol -String -Keyword -Char -Number
169169
(make-Vector (-Syntax e))
170-
(make-Box (-Syntax e))
170+
(-box (-Syntax e))
171171
(make-Listof (-Syntax e))
172172
(-pair (-Syntax e) (-Syntax e)))))
173173
(define/decl Any-Syntax (-Syntax In-Syntax))
@@ -177,7 +177,7 @@
177177
-Number -Boolean -Symbol -String -Keyword -Char
178178
(-pair sexp sexp)
179179
(make-Vector sexp)
180-
(make-Box sexp)
180+
(-box sexp)
181181
t)))
182182
(define/decl -Flat
183183
(-mu flat

0 commit comments

Comments
 (0)