unisonweb / unison

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

bugfix: `namespace` + top level `use` parse error #5403

Closed mitchellwrosen closed 1 month ago

mitchellwrosen commented 1 month ago

Overview

Fixes #5402

The namespace directive parser was erroneously not consuming the virtual semi that follows. Because the top-level use parser consumed its virtual semi, things still appeared to work as long as either a namespace directive was present, or top-level use, but not both.

Test coverage

I've added a transcript (failing in first commit).