Fix an unfortunate bug in Union construction.
This commit is contained in:
parent
ad8d0629f8
commit
beefe73f7e
|
@ -34,7 +34,7 @@
|
||||||
(cons a b)]
|
(cons a b)]
|
||||||
[((? (λ _ (subtype a b*))) _) b]
|
[((? (λ _ (subtype a b*))) _) b]
|
||||||
[((? (λ _ (subtype b* a))) _) (list a)]
|
[((? (λ _ (subtype b* a))) _) (list a)]
|
||||||
[(_ _) (cons a b)]))
|
[(_ _) (cons a (filter-not (λ (b-elem) (subtype b-elem a)) b))]))
|
||||||
|
|
||||||
;; Type -> List[Type]
|
;; Type -> List[Type]
|
||||||
(define (flat t)
|
(define (flat t)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user