diff --git a/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/types/printer.rkt b/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/types/printer.rkt index 1996fcb6..d8f2ad8c 100644 --- a/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/types/printer.rkt +++ b/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/types/printer.rkt @@ -407,7 +407,7 @@ [(Instance: t) `(Instance ,(t->s t))] [(Class: pf nf ms) '(Class)] [(Result: t (FilterSet: (Top:) (Top:)) (Empty:)) (type->sexp t)] - [(Result: t fs (Empty:)) `(,(type->sexp t) : (filter->sexp fs))] + [(Result: t fs (Empty:)) `(,(type->sexp t) : ,(filter->sexp fs))] [(Result: t fs lo) `(,(type->sexp t) : ,(filter->sexp fs) : ,(object->sexp lo))] [(MPair: s t) `(MPairof ,(t->s s) ,(t->s t))] [(Refinement: parent p?) diff --git a/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/type-printer-tests.rkt b/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/type-printer-tests.rkt index 0ee985be..60b0d831 100644 --- a/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/type-printer-tests.rkt +++ b/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/type-printer-tests.rkt @@ -68,6 +68,9 @@ (check-prints-as? (-mu x (-lst x)) "(Rec x (Listof x))") (check-prints-as? (-seq -String -Symbol) "(Sequenceof String Symbol)") (check-prints-as? (-poly (a) (-> a -Void)) "(All (a) (a -> Void))") + (check-prints-as? (-> -Input-Port (make-Values (list (-result -String (-FS -top -bot) -no-obj) + (-result -String (-FS -top -bot) -no-obj)))) + "(Input-Port -> (values (String : (Top | Bot)) (String : (Top | Bot))))") (check-prints-as? (->key Univ -Pathlike #:exists (one-of/c 'error 'append 'update 'replace