Have letrec build unions in canonical form.
original commit: 27d7ad1e87da6007a4a1123941114802a74615c3
This commit is contained in:
parent
27265fe60e
commit
c891702954
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user