Top-level statements like exports need LineNumberNodes #28991
Labels
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
kind:bug
Indicates an unexpected problem or unintended behavior
As of Julia v0.7, running the snippet
yields the error
After much tinkering, I discovered that adding a dummy LineNumberNode fixes the problem:
Still, this seems like a bug, and the behavior didn't exist prior to v0.7. Possibly related to #28990.
The text was updated successfully, but these errors were encountered: