Skip to content

Preserve static map domains with none values - #15855

Open
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-dynamic-map-none
Open

Preserve static map domains with none values#15855
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-dynamic-map-none

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

Map domain entries are optional, so an empty static value excludes keys in that domain instead of making the whole map empty. Preserve those static lower bounds and cover their use in contravariant function arguments.

Note "map hoists dynamic" tests needed update as it asserted on static part precision loss.

Fixes #15854

Assisted-by: GPT-5.6 Sol

Map domain entries are optional, so an empty static value excludes keys in that domain instead of making the whole map empty. Preserve those static lower bounds and cover their use in contravariant function arguments.

Assisted-by: Codex:GPT-5
@josevalim
josevalim requested a review from gldubc September 5, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Gradual map domain with none looses static part when computing lower bound

2 participants