Skip to content

Commit 97559cd

Browse files
committed
change the type of box-immutable back to returning Boxof
because otherwise immutable boxes could not be used at that type at all
1 parent 9eae49c commit 97559cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@
900900

901901
;; Section 4.12 (Boxes)
902902
[box (-poly (a) (a . -> . (-box a)))]
903-
[box-immutable (-poly (a) (a . -> . (-Boxof/Read a)))]
903+
[box-immutable (-poly (a) (a . -> . (-box a)))]
904904
[unbox (-poly (a) (cl->*
905905
((-Boxof/Read a) . -> . a)
906906
(-BoxTop . -> . Univ)))]

0 commit comments

Comments
 (0)