Skip to content

fix(rename): preserve record fields in punned uses - #2040

Open
rgrinberg wants to merge 2 commits into
masterfrom
push-mtokuzsrxkrv
Open

fix(rename): preserve record fields in punned uses#2040
rgrinberg wants to merge 2 commits into
masterfrom
push-mtokuzsrxkrv

Conversation

@rgrinberg

@rgrinberg rgrinberg commented Jul 31, 2026

Copy link
Copy Markdown
Member

Detect record-punned occurrences during rename and expand them from { x } to { x = y }, preserving the field name while renaming the bound variable.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-mtokuzsrxkrv branch from 639b6a1 to 4af67e5 Compare July 31, 2026 19:48
@rgrinberg rgrinberg changed the title test(rename): expose record-pun field corruption fix(rename): preserve record fields in punned uses Jul 31, 2026
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-mtokuzsrxkrv branch from 4af67e5 to 2997445 Compare July 31, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant