Fix an unfortunate bug in Union construction.

This commit is contained in:
Sam Tobin-Hochstadt 2013-11-25 12:59:50 -05:00
parent ad8d0629f8
commit beefe73f7e

View File

@ -34,7 +34,7 @@
(cons a b)]
[((? (λ _ (subtype a b*))) _) b]
[((? (λ _ (subtype b* a))) _) (list a)]
[(_ _) (cons a b)]))
[(_ _) (cons a (filter-not (λ (b-elem) (subtype b-elem a)) b))]))
;; Type -> List[Type]
(define (flat t)