Fix the fix to type queries.

Should have been included in the original commit.

original commit: 5d6ecd77542c8da3cc81c51f41d1a6f44b7530d6
This commit is contained in:
Vincent St-Amour 2014-09-10 14:30:22 -04:00
parent 2cfd28a6d3
commit 3b4ca8dac1

View File

@ -325,7 +325,10 @@
(match t
;; function type, prune if possible.
[(Function/arrs: doms rngs rests drests kws)
(match-let ([(list pdoms rngs rests drests) (possible-domains doms rests drests rngs (and expected (ret expected)))])
(match-let ([(list pdoms rngs rests drests)
(possible-domains doms rests drests rngs
(and expected (ret expected))
permissive?)])
(if (= (length pdoms) (length doms))
;; pruning didn't improve things, return the original
;; (Note: pruning may have reordered clauses, so may not be `equal?' to