Skip to content

fix(menhir): avoid self-shadowing parser group interfaces - #16427

Closed
anmonteiro wants to merge 2 commits into
ocaml:mainfrom
anmonteiro:fix/menhir-group-interface-shadowing
Closed

anmonteiro wants to merge 2 commits into
ocaml:mainfrom
anmonteiro:fix/menhir-group-interface-shadowing

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Skip alias self-shadowing for Menhir-generated module group interfaces, fixing the inferred-path failures from #8989. Regression coverage was merged in #16426.

Handwritten ancestor interfaces retain the existing limitation.

@anmonteiro
anmonteiro force-pushed the fix/menhir-group-interface-shadowing branch from aaf4e30 to 74c62a4 Compare September 18, 2026 05:12
@anmonteiro
anmonteiro force-pushed the fix/menhir-group-interface-shadowing branch from 74c62a4 to a0e6074 Compare September 18, 2026 05:29
anmonteiro added a commit that referenced this pull request Sep 19, 2026
Reproduce shadowed ancestor aliases during Menhir inference (#8989,
#16427). PPX and OxCaml parameter coverage is split into #16436 and
#16437.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Sep 27, 2026
Fix Menhir inference for qualified module group interfaces by opening a
private alias interface, preserving logical dependency lookup.

Fixes #8989. Continues anmonteiro#199; alternative to #16427 and
anmonteiro#195.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro

Copy link
Copy Markdown
Collaborator Author

superseded by #16464

@anmonteiro anmonteiro closed this Sep 27, 2026
@anmonteiro
anmonteiro deleted the fix/menhir-group-interface-shadowing branch September 27, 2026 16:26
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.

1 participant