unisonweb / unison

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

bugfix: name capture bug #5382

Closed mitchellwrosen closed 1 month ago

mitchellwrosen commented 1 month ago

Overview

Fixes #5380

This PR fixes the name capture bug above simply by rendering names with a leading dot whenever the fully-qualified name is captured by a local binding.

No other changes appear to be necessary – we already parsed absolute names correctly, and we already disallow using an absolute name as a local variable binding.

Test coverage

I've added a transcript