Prune argument types too in error messages.

Closes PR 12907.

original commit: 9c30da7682a96a5fbb7f4dd6afebafb8006d8274
This commit is contained in:
Vincent St-Amour 2014-10-22 13:58:22 -04:00
parent 192f85b684
commit 85bd67a8b0

View File

@ -72,10 +72,10 @@
(define (make-printable t)
(match t
[(tc-result1: t) t]
[(tc-results: ts) (-values ts)]
[(tc-result1: t) (cleanup-type t)]
[(tc-results: ts) (-values (map cleanup-type ts))]
[(tc-any-results: f) (-AnyValues -top)]
[_ t]))
[_ (cleanup-type t)]))
(define (stringify-domain dom rst drst [rng #f])
(let ([doms-string (if (null? dom) "" (string-append (stringify (map make-printable dom)) " "))]