Skip to content

lib: name the module a shadowed constructor comes from - #298

Open
samoht wants to merge 2 commits into
strict-shadowing-warningsfrom
shadow-warning-45
Open

lib: name the module a shadowed constructor comes from#298
samoht wants to merge 2 commits into
strict-shadowing-warningsfrom
shadow-warning-45

Conversation

@samoht

@samoht samoht commented Aug 2, 2026

Copy link
Copy Markdown
Owner

open Css and open Css.Selector were quietly taking over None, Focus, Odd and friends, so a bare constructor could mean either module's. Warning 45 is now an error and every such use spells out the module it wants.

samoht added 2 commits August 1, 2026 23:12
An `open Css` or `open Css.Selector` was quietly taking over `None`, `Focus`,
`Odd` and friends, so a bare constructor could mean either module's. Each such
use now names the one it wants.
Warning 45 is off in dune's default set, which is how the shadowed uses in the
previous commit went unnoticed.
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