Improve printing of effects for functions with simple effects.
Reject contract creation of overloaded types. svn: r12105 original commit: ae1fd58e2b085dbd605f41b17a8ad360aa2bb830
This commit is contained in:
parent
9971f1730d
commit
ec58da0ff0
|
@ -64,8 +64,10 @@
|
|||
(when drest
|
||||
(fp "~a ... ~a " (car drest) (cdr drest)))
|
||||
(fp "-> ~a" rng)
|
||||
(unless (and (null? thn-eff) (null? els-eff))
|
||||
(fp " : ~a ~a" thn-eff els-eff))
|
||||
(match* (thn-eff els-eff)
|
||||
[((list) (list)) (void)]
|
||||
[((list (Latent-Restrict-Effect: t)) (list (Latent-Remove-Effect: t))) (fp " : ~a" t)]
|
||||
[(_ _) (fp " : ~a ~a" thn-eff els-eff)])
|
||||
(fp ")")]))
|
||||
(define (tuple? t)
|
||||
(match t
|
||||
|
|
Loading…
Reference in New Issue
Block a user