julia
Fix error message when using `const` inside a function, require the LHS to be global, and prohibit "const x[] = 1"
#57470
Merged

Fix error message when using `const` inside a function, require the LHS to be global, and prohibit "const x[] = 1" #57470

xal-0
xal-0 xal-0 force pushed from 0f5a7aa2 to 5a09ce3b 341 days ago
vtjnash
vtjnash approved these changes on 2025-02-19
xal-0 xal-0 added compiler:lowering
xal-0 xal-0 added bugfix
xal-0 xal-0 added error messages
xal-0
xal-0 xal-0 marked this pull request as draft 339 days ago
xal-0 xal-0 force pushed from 33184ba5 to b45c8e06 339 days ago
xal-0 xal-0 force pushed from b45c8e06 to a4f7d000 336 days ago
xal-0 xal-0 force pushed from a4f7d000 to ce76dbf0 336 days ago
xal-0
xal-0
vtjnash vtjnash added don't squash
mlechu
nanosoldier
KristofferC
mlechu
mlechu commented on 2025-03-05
xal-0 xal-0 force pushed from ce76dbf0 to 14c14f12 318 days ago
xal-0 xal-0 force pushed from 14c14f12 to cbce6cd8 314 days ago
xal-0 Add tests for #57334, #57470
378373e1
xal-0 Factor out expand-table '= lambda into expand-assignment
6043569f
xal-0 const lowering: respect scope, prohibit non-const `const` assignment
9a437a52
xal-0 const lowering: resolve scopes under assign-const-if-global
64672f5e
xal-0 xal-0 force pushed from cbce6cd8 to 64672f5e 314 days ago
xal-0 xal-0 marked this pull request as ready for review 314 days ago
xal-0 xal-0 requested a review from vtjnash vtjnash 314 days ago
vtjnash
vtjnash commented on 2025-03-20
vtjnash vtjnash merged fb01f915 into master 312 days ago
KristofferC KristofferC added backport 1.12
KristofferC KristofferC removed backport 1.12

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone