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).
Overview
Fixes #5402
The
namespace
directive parser was erroneously not consuming the virtual semi that follows. Because the top-leveluse
parser consumed its virtual semi, things still appeared to work as long as either anamespace
directive was present, or top-leveluse
, but not both.Test coverage
I've added a transcript (failing in first commit).