diff --git a/collects/typed-racket/types/union.rkt b/collects/typed-racket/types/union.rkt index 9d78661b..f817a736 100644 --- a/collects/typed-racket/types/union.rkt +++ b/collects/typed-racket/types/union.rkt @@ -34,9 +34,17 @@ [(Union: es) es] [_ (list t)])) +(define empty-union (make-Union null)) + ;; Union constructor ;; Normalizes representation by sorting types. ;; Type * -> Type ;; The input types can overlap and be union types -(define (Un . args) - (make-union* (foldr merge '() (remove-dups (sort (append-map flat args) type