mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-14 11:16:33 +03:00
Tweak unification algorithm to preserve old behavior more.
(This fixes lots of trivially-broken regression tests.)
This commit is contained in:
parent
bae811376c
commit
29f401bbcb
@ -124,7 +124,7 @@ bindVar v@(TVBound {}) t
|
||||
where k = kindOf v
|
||||
|
||||
bindVar x@(TVFree _ _ xscope _) (TVar y@(TVFree _ _ yscope _))
|
||||
| xscope `Set.isSubsetOf` yscope = return (singleSubst y (TVar x), [])
|
||||
| xscope `Set.isProperSubsetOf` yscope = return (singleSubst y (TVar x), [])
|
||||
|
||||
bindVar x@(TVFree _ k inScope _d) t
|
||||
| not (k == kindOf t) = uniError $ UniKindMismatch k (kindOf t)
|
||||
|
Loading…
Reference in New Issue
Block a user