unisonweb / unison

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

"Ambiguous name" error doesn't always select the right alias #5371

Open mitchellwrosen opened 1 month ago

mitchellwrosen commented 1 month ago

When we complain about an ambiguous suffix foo that could refer to one.foo or two.foo, we should always use names one.foo and two.foo (as opposed to an alias).

aryairani commented 1 month ago

This is one of maybe many cases where we should be using "the name we just said" and not an arbitrary other alias for the same hash, in the output.