Make Unions of function typechecking work again.

original commit: 5339cbaac99fe8620436846a5ba696157646be1c
This commit is contained in:
Eric Dobson 2014-06-25 08:55:42 -07:00
parent 67294c2a5d
commit 671ad37a5b
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -3102,6 +3102,10 @@
b)
-Bottom]
[tc-e
((if (even? 4) add1 (inst values Integer)) 4)
-Int]
)
(test-suite