unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.81k stars 271 forks source link

`suffixifyByHash` doesn't properly suffixify an indirect dependency name #5374

Closed mitchellwrosen closed 1 month ago

mitchellwrosen commented 1 month ago

Input:

```ucm
scratch/main> builtins.merge lib.builtin
lib.direct.foo = 17
lib.direct.lib.indirect.foo = 18

thing = indirect.foo + indirect.foo
scratch/main> add
scratch/main> view thing

Output:

thing : Nat thing = use Nat + foo + foo