Make Unions of function typechecking work again.
This commit is contained in:
parent
5cbe6cfdcb
commit
5339cbaac9
|
@ -158,7 +158,7 @@
|
||||||
[(Union: (and ts (list (? Function?) ...)))
|
[(Union: (and ts (list (? Function?) ...)))
|
||||||
(merge-tc-results
|
(merge-tc-results
|
||||||
(for/list ([fty ts])
|
(for/list ([fty ts])
|
||||||
(tc/funapp f-stx args-stx fty argtys expected)))]
|
(tc/funapp f-stx args-stx fty args-res expected)))]
|
||||||
;; error type is a perfectly good fcn type
|
;; error type is a perfectly good fcn type
|
||||||
[(Error:) f-type]
|
[(Error:) f-type]
|
||||||
;; otherwise fail
|
;; otherwise fail
|
||||||
|
|
|
@ -3102,6 +3102,10 @@
|
||||||
b)
|
b)
|
||||||
-Bottom]
|
-Bottom]
|
||||||
|
|
||||||
|
[tc-e
|
||||||
|
((if (even? 4) add1 (inst values Integer)) 4)
|
||||||
|
-Int]
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(test-suite
|
(test-suite
|
||||||
|
|
Loading…
Reference in New Issue
Block a user