We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fb199 commit 14d0898Copy full SHA for 14d0898
typed-racket-test/unit-tests/typecheck-tests.rkt
@@ -1329,6 +1329,14 @@
1329
(define: x : Any 7)
1330
(if (box? x) (unbox x) (+ 1)))
1331
Univ]
1332
+ [tc-e (if (zero? (random 2)) (box "hello") (box 'hello))
1333
+ (-box -Bottom (t:Un -String -Symbol))]
1334
+ [tc-e (unbox (if (zero? (random 2)) (box "hello") (box 'hello)))
1335
+ (t:Un -String -Symbol)]
1336
+ [tc-e (if (zero? (random 2)) ((inst box Natural) 3) ((inst box Integer) -5))
1337
+ (-box -Nat -Int)]
1338
+ [tc-e (unbox (if (zero? (random 2)) ((inst box Natural) 3) ((inst box Integer) -5)))
1339
+ -Int]
1340
[tc-e (floor 1/2) -Nat]
1341
[tc-e (ceiling 1/2) -PosInt]
1342
[tc-e (truncate 0.5) -NonNegFlonum]
0 commit comments