Skip to content

Conversation

GearsDatapacks
Copy link
Member

This PR fixes #4877
As noted in the comments of one of the functions, ideally we would merge this deduplication logic with that done in the code generators, however for now we need to ensure we don't have critical bugs such as this, so that larger item of work can wait until later.

@GearsDatapacks GearsDatapacks marked this pull request as draft August 29, 2025 11:48
@GearsDatapacks GearsDatapacks force-pushed the fix-inlining-shadowed-variables branch from e8dc51d to 4e06382 Compare September 5, 2025 09:40
@GearsDatapacks GearsDatapacks marked this pull request as ready for review September 5, 2025 09:43
@GearsDatapacks
Copy link
Member Author

Ok, I've made it work for case expressions as well!

@GearsDatapacks GearsDatapacks force-pushed the fix-inlining-shadowed-variables branch 2 times, most recently from eae2bba to 2f5c66f Compare September 14, 2025 20:18
@GearsDatapacks GearsDatapacks force-pushed the fix-inlining-shadowed-variables branch from 2f5c66f to bb0854a Compare September 17, 2025 11:55
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!!

@lpil lpil merged commit 61cd8e4 into gleam-lang:main Sep 18, 2025
12 checks passed
@GearsDatapacks GearsDatapacks deleted the fix-inlining-shadowed-variables branch September 18, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug with inlining when variable names are duplicated
2 participants