Skip to content

Commit ff1446f

Browse files
author
Andrew Kent
committed
never print Void as a val
1 parent 8aa05be commit ff1446f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@
620620
;; values like characters (when `display`ed)
621621
;; (comes after Intersection since Val-able will match
622622
;; when an element of an intersection is a val)
623-
[(Val-able: v) (format "~v" v)]
623+
[(Val-able: v) (cond [(void? v) 'Void]
624+
[else (format "~v" v)])]
624625
[(? Base?) (Base-name type)]
625626
[(Pair: l r) `(Pairof ,(t->s l) ,(t->s r))]
626627
[(ListDots: dty dbound) `(List ,(t->s dty) ... ,dbound)]

0 commit comments

Comments
 (0)