Skip to content

Commit d877e0f

Browse files
committed
test that box-immutable doesn't break programs that use Boxof
1 parent 97559cd commit d877e0f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#lang typed/racket
2+
3+
;; box-immutable should not break programs that use Boxof
4+
5+
(define b (box-immutable 5))
6+
7+
(: f : (Boxof Integer) -> Integer)
8+
(define (f b)
9+
(unbox b))
10+
11+
(f b)
12+

0 commit comments

Comments
 (0)