Have letrec build unions in canonical form.

original commit: 27d7ad1e87da6007a4a1123941114802a74615c3
This commit is contained in:
Vincent St-Amour 2011-07-01 15:36:03 -04:00
parent 27265fe60e
commit c891702954

View File

@ -166,7 +166,9 @@
(s:member x safe-bindings bound-identifier=?))
l)
types-from-user
(map (λ (x) (make-Union (list x -Undefined)))
(map (λ (x) (make-Union (if (type<? x -Undefined)
(list x -Undefined)
(list -Undefined x))))
types-from-user)))))
names))
;; types the user gave. check against that to error if we could get undefined