Fix the fix to type queries.

Should have been included in the original commit.
This commit is contained in:
Vincent St-Amour 2014-09-10 14:30:22 -04:00
parent 08178c1ec2
commit 5d6ecd7754

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