Fix an unfortunate bug in Union construction.

original commit: beefe73f7e7b6fbb547f327e206f447e4f6815b0
This commit is contained in:
Sam Tobin-Hochstadt 2013-11-25 12:59:50 -05:00
parent 4c43cfb76c
commit f7cdf5f1ae

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)