8000 fix(flambda2): Only check for unbound names in invariant by bclement-ocp · Pull Request #4218 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(flambda2): Only check for unbound names in invariant #4218

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

Merged
merged 2 commits into from
Jun 27, 2025

Conversation

bclement-ocp
Copy link
Contributor

The invariant_for_new_equation in the typing env is supposed to check that the type we are adding only contains bound names, but it also includes checks for function slots and value slots that are never "bound" per se.

Fix the check to only consider names instead.

(This makes the "heavy" invariants check not fail immediately when we add an equation with a closure type)

The `invariant_for_new_equation` in the typing env is supposed to check
that the type we are adding only contains bound names, but it also
includes checks for function slots and value slots that are never
"bound" per se.

Fix the check to only consider names instead.
@bclement-ocp bclement-ocp requested a review from lthls June 27, 2025 13:56
@bclement-ocp bclement-ocp added the flambda2 Prerequisite for, or part of, flambda2 label Jun 27, 2025
@bclement-ocp bclement-ocp enabled auto-merge (squash) June 27, 2025 14:12
@bclement-ocp bclement-ocp merged commit dcf6ded into oxcaml:main Jun 27, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flambda2 Prerequisite for, or part of, flambda2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
3086
0