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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler): Fix disambiguation of record label access #2072

Merged
merged 1 commit into from Mar 16, 2024

Conversation

ospencer
Copy link
Member

No description provided.

@ospencer ospencer self-assigned this Mar 16, 2024
@@ -2592,7 +2592,7 @@ and type_label_access = (env, srecord, lid) => {
let opath =
try({
let (p0, p, _) = extract_concrete_record(env, ty_exp);
Some((p0, p, repr(ty_exp).level == generic_level));
Copy link
Member Author

Choose a reason for hiding this comment

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

This has been broken for quite a while, long enough that I'm too lazy to find out. We did some cleanup in #1751 where you can see what the code was before. Most of the logic around principal types was commented out, including a condition that would consider this to be true if principal types were not enabled. I imagine we accidentally commented that out way back in the day.

@phated phated added this pull request to the merge queue Mar 16, 2024
Merged via the queue into main with commit 1f8a20d Mar 16, 2024
12 checks passed
@phated phated deleted the oscar/record-warn branch March 16, 2024 18:43
@github-actions github-actions bot mentioned this pull request Mar 14, 2024
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.

None yet

2 participants