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 local type variables breaking react components in uncurried mode #6665

Conversation

glennsl
Copy link
Contributor

@glennsl glennsl commented Mar 4, 2024

Fixes #6625

cknitt and others added 2 commits February 26, 2024 21:02
Comment on lines 61 to 65
| Pexp_newtype (label, e) ->
{
expr with
pexp_desc = Pexp_newtype (label, removeArityRecord e);
}
Copy link
Member

Choose a reason for hiding this comment

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

I guess this would fix the issue, thanks!

@zth zth requested a review from cristianoc March 4, 2024 11:05
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

looks great

@zth zth enabled auto-merge (squash) March 4, 2024 16:06
@zth
Copy link
Collaborator

zth commented Mar 5, 2024

This should probably be ported to v11 too. It can make it into the v11.1 release.

…escript-lang#6664)

* add test

* fix dynamic import of external

* add test for adding static import

* add change log
@zth
Copy link
Collaborator

zth commented Mar 5, 2024

@glennsl actually, would you mind rebasing onto the v11_release branch?

@zth zth disabled auto-merge March 5, 2024 12:39
@glennsl glennsl force-pushed the fix/uncurried/react-component-newtype branch from 457df73 to 1a7e08b Compare March 5, 2024 19:42
@glennsl glennsl closed this Mar 5, 2024
@glennsl
Copy link
Contributor Author

glennsl commented Mar 5, 2024

@glennsl actually, would you mind rebasing onto the v11_release branch?

Ok, opened #6668 for that.

@glennsl glennsl deleted the fix/uncurried/react-component-newtype branch March 5, 2024 20:01
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.

Uncurrying breaks components with local type variables
6 participants