mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-28 09:23:04 +03:00
Fixing a type constraint solver bug submitted by Jaak Randmets,
verified by Iavor. Regression tests passed.
This commit is contained in:
parent
3e0ce32888
commit
3188a212b5
@ -250,8 +250,8 @@ exportType ty =
|
||||
err = panic "exportType" [ "Unexpected type", show ty ]
|
||||
|
||||
exportVar :: TVar -> Int
|
||||
exportVar (TVFree x _ _ _) = x * x
|
||||
exportVar (TVBound x _) = 2 * x + 1
|
||||
exportVar (TVFree x _ _ _) = 2 * x -- Free vars are even
|
||||
exportVar (TVBound x _) = 2 * x + 1 -- Bound vars are odd
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user