1
0
forked from M-Labs/nac3
nac3/nac3standalone/src
David Mak 77de24ef74 core: Use BTreeMap for type variable mapping
There have been multiple instances where I had the need to iterate over
type variables, only to discover that the traversal order is arbitrary.

This commit fixes that by adding SortedMapping, which utilizes BTreeMap
internally to guarantee a traversal order. All instances of VarMap are
now refactored to use this to ensure that type variables are iterated in
 the order of its variable ID, which should be monotonically incremented
 by the unifier.
2024-03-04 23:56:04 +08:00
..
basic_symbol_resolver.rs standalone: Output id of undefined identifier 2023-12-16 18:40:48 +08:00
main.rs core: Use BTreeMap for type variable mapping 2024-03-04 23:56:04 +08:00