Make Unions of function typechecking work again.
original commit: 5339cbaac99fe8620436846a5ba696157646be1c
This commit is contained in:
parent
67294c2a5d
commit
671ad37a5b
|
@ -158,7 +158,7 @@
|
|||
[(Union: (and ts (list (? Function?) ...)))
|
||||
(merge-tc-results
|
||||
(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:) f-type]
|
||||
;; otherwise fail
|
||||
|
|
|
@ -3102,6 +3102,10 @@
|
|||
b)
|
||||
-Bottom]
|
||||
|
||||
[tc-e
|
||||
((if (even? 4) add1 (inst values Integer)) 4)
|
||||
-Int]
|
||||
|
||||
)
|
||||
|
||||
(test-suite
|
||||
|
|
Loading…
Reference in New Issue
Block a user