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 uppercase exotic field format #6897

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

cometkim
Copy link
Member

Fixed #6882

The ident format has changed in #6777 for exotic uppercase names, but the change is not applied to the backend in the previous PR.

@cometkim cometkim changed the title Fix uppercase field names on record Fix uppercase exotic field format Jul 20, 2024
@@ -84,6 +84,7 @@ let property_access f s =
let property_key (s : J.property_name) : string =
match s with
| Lit s ->
let s = Ext_ident.unwrap_uppercase_exotic s in
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wondering whether s should have its own type other than string, so that one gets a reminder to do the unwrapping.
Here and in the other cases of ids.

Copy link
Member

Choose a reason for hiding this comment

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

Good point, can be investigated separately.

@cknitt
Copy link
Member

cknitt commented Jul 21, 2024

Thanks a lot for the fix @cometkim! 🎉

@cknitt cknitt merged commit 4934f3b into rescript-lang:master Jul 21, 2024
19 checks passed
@cometkim cometkim deleted the fix-record-key branch July 21, 2024 07:23
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.

Exotic identifiers as field names broken on master
3 participants