Skip to content

typecore.ml on Pexp_struct_item: fix #14554#14556

Merged
gasche merged 3 commits intoocaml:trunkfrom
gasche:fix-14554
Feb 16, 2026
Merged

typecore.ml on Pexp_struct_item: fix #14554#14556
gasche merged 3 commits intoocaml:trunkfrom
gasche:fix-14554

Conversation

@gasche
Copy link
Copy Markdown
Member

@gasche gasche commented Feb 16, 2026

This PR, co-authored with @samsa1, fixes a temporary regression reported by @anmonteiro, introduced in trunk by #13839 (and also a related bug that was already there before).

fixes #14554

@gasche gasche added this to the 5.5.0 bug fixes milestone Feb 16, 2026
gasche and others added 3 commits February 16, 2026 17:27
Reported-by: Antonio Nuno Monteiro <anmonteiro@gmail.co
Co-authored-by: Samuel Vivien <samuel.vivien@inria.fr>
Copy link
Copy Markdown
Member

@Octachron Octachron left a comment

Choose a reason for hiding this comment

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

I agree with this fix, since Pexp_struct_item introduces a new separate scope for global type variables, and we want to generalize the free type variables after leaving the scope.

@gasche gasche merged commit 23a1269 into ocaml:trunk Feb 16, 2026
26 checks passed
@gasche
Copy link
Copy Markdown
Member Author

gasche commented Feb 16, 2026

Thanks! I merged and will cherry-pick into the 5.5 release branch.

gasche added a commit that referenced this pull request Feb 16, 2026
typecore.ml on Pexp_struct_item: fix #14554

(cherry picked from commit 23a1269)
@nojb
Copy link
Copy Markdown
Contributor

nojb commented Feb 16, 2026

Thanks @samsa1, @gasche for the speedy fix!

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.

let module value restriction regression in 5.5?

4 participants