We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c2ea7 commit 9c484eaCopy full SHA for 9c484ea
typed-racket-lib/typed-racket/types/union.rkt
@@ -37,6 +37,12 @@
37
[(_ _) #:when (currently-subtyping?) (cons a b)]
38
[((? (λ _ (subtype a b*))) _) b]
39
[((? (λ _ (subtype b* a))) _) (list a)]
40
+ [((Box: a-w a-r) (list-no-order (Box: b-w b-r) bs ...))
41
+ (define w
42
+ (cond [(subtype a-w b-w) a-w]
43
+ [(subtype b-w a-w) b-w]
44
+ [else -Bottom]))
45
+ (cons (make-Box w (Un a-r b-r)) bs)]
46
[(_ _) (cons a (filter-not (λ (b-elem) (subtype b-elem a)) b))]))
47
48
;; Type -> List[Type]
0 commit comments