-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top-level statements like exports need LineNumberNodes #28991
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
Comments
JeffBezanson
added a commit
that referenced
this issue
Sep 4, 2018
The code for this expected the first element of a block to be a line number; check to make sure it is before using it.
Thanks for the fix! |
KristofferC
pushed a commit
that referenced
this issue
Sep 6, 2018
Merged
KristofferC
pushed a commit
that referenced
this issue
Sep 8, 2018
KristofferC
pushed a commit
that referenced
this issue
Sep 8, 2018
KristofferC
pushed a commit
that referenced
this issue
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
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: