Fix the fix to type queries.
Should have been included in the original commit.
This commit is contained in:
parent
08178c1ec2
commit
5d6ecd7754
|
@ -325,7 +325,10 @@
|
||||||
(match t
|
(match t
|
||||||
;; function type, prune if possible.
|
;; function type, prune if possible.
|
||||||
[(Function/arrs: doms rngs rests drests kws)
|
[(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))
|
(if (= (length pdoms) (length doms))
|
||||||
;; pruning didn't improve things, return the original
|
;; pruning didn't improve things, return the original
|
||||||
;; (Note: pruning may have reordered clauses, so may not be `equal?' to
|
;; (Note: pruning may have reordered clauses, so may not be `equal?' to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user