Skip to content

Conversation

@mlechu
Copy link
Member

@mlechu mlechu commented Oct 6, 2025

Fix #59008. globalrefs are OK to assign to.

This check isn't actually necessary since we check the lhs again when re-expanding the assignment, and most of the forms allowed through aren't valid with a non-dotted op=, but deleting it makes some error messages worse.

@mlechu mlechu requested a review from oscardssmith October 6, 2025 23:32
@mlechu mlechu added the compiler:lowering Syntax lowering (compiler front end, 2nd stage) label Oct 6, 2025
@Keno Keno added the backport 1.12 Change should be backported to release-1.12 label Oct 7, 2025
@Keno Keno merged commit 5ddcea7 into JuliaLang:master Oct 7, 2025
10 checks passed
KristofferC pushed a commit that referenced this pull request Oct 10, 2025
Fix #59008. `globalref`s are OK
to assign to.

This check isn't actually necessary since we check the lhs again when
re-expanding the assignment, and most of the forms allowed through
aren't valid with a non-dotted `op=`, but deleting it makes some error
messages worse.

(cherry picked from commit 5ddcea7)
@KristofferC KristofferC mentioned this pull request Oct 10, 2025
47 tasks
KristofferC pushed a commit that referenced this pull request Oct 12, 2025
Fix #59008. `globalref`s are OK
to assign to.

This check isn't actually necessary since we check the lhs again when
re-expanding the assignment, and most of the forms allowed through
aren't valid with a non-dotted `op=`, but deleting it makes some error
messages worse.

(cherry picked from commit 5ddcea7)
KristofferC pushed a commit that referenced this pull request Oct 14, 2025
Fix #59008. `globalref`s are OK
to assign to.

This check isn't actually necessary since we check the lhs again when
re-expanding the assignment, and most of the forms allowed through
aren't valid with a non-dotted `op=`, but deleting it makes some error
messages worse.

(cherry picked from commit 5ddcea7)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:lowering Syntax lowering (compiler front end, 2nd stage)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macroexpand of globals slightly broken

4 participants