Fix printing of rest argument types in TR
This was a regression that snuck in with pretty printing
This commit is contained in:
parent
5634ad75eb
commit
739f236da3
|
@ -222,7 +222,7 @@
|
||||||
(format "~a ~a" k (type->sexp t))
|
(format "~a ~a" k (type->sexp t))
|
||||||
(format "[~a ~a]" k (type->sexp t)))]))
|
(format "[~a ~a]" k (type->sexp t)))]))
|
||||||
(if rest
|
(if rest
|
||||||
(list rest (if (special-dots-printing?) '...* '*))
|
(list (type->sexp rest) (if (special-dots-printing?) '...* '*))
|
||||||
null)
|
null)
|
||||||
(if drest
|
(if drest
|
||||||
(if (special-dots-printing?)
|
(if (special-dots-printing?)
|
||||||
|
|
|
@ -71,6 +71,9 @@
|
||||||
(check-prints-as? (-> -Input-Port (make-Values (list (-result -String (-FS -top -bot) -no-obj)
|
(check-prints-as? (-> -Input-Port (make-Values (list (-result -String (-FS -top -bot) -no-obj)
|
||||||
(-result -String (-FS -top -bot) -no-obj))))
|
(-result -String (-FS -top -bot) -no-obj))))
|
||||||
"(Input-Port -> (values (String : (Top | Bot)) (String : (Top | Bot))))")
|
"(Input-Port -> (values (String : (Top | Bot)) (String : (Top | Bot))))")
|
||||||
|
;; this case tests that the Number union is printed with its name
|
||||||
|
;; rather than its expansion (a former bug)
|
||||||
|
(check-prints-as? (->* '() -Number -Void) "(Number * -> Void)")
|
||||||
(check-prints-as? (->key Univ -Pathlike
|
(check-prints-as? (->key Univ -Pathlike
|
||||||
#:exists
|
#:exists
|
||||||
(one-of/c 'error 'append 'update 'replace
|
(one-of/c 'error 'append 'update 'replace
|
||||||
|
|
Loading…
Reference in New Issue
Block a user