Skip to content
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

Fix issue with uncurried function with 1 arg being a variable #6507

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

cristianoc
Copy link
Collaborator

Fixes #6504

Uncurried functions with 1 unit argument are emitted without the parameter. This leaves a possible undefined id in the emitted code if the parameter is a variable. This PR limits the optimization to cases where the parameter is explicitly (), as opposed to e.g. a variable whose type is inferred to be unit.

Fixes #6504

Uncurried functions with 1 unit argument are emitted without the parameter. This leaves a possible undefined id in the emitted code if the parameter is a variable.
This PR limits the optimization to cases where the parameter is explicitly `()`, as opposed to e.g. a variable whose type is inferred to be unit.
@cristianoc cristianoc merged commit 3ec3479 into master Dec 5, 2023
8 checks passed
@cristianoc cristianoc deleted the uncurried_fun_1_arg branch December 5, 2023 11:10
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.

Uncurried mode regression 11.0.0-rc.6
2 participants