Skip to content

Fix inferred map requirements for mixed update keys - #15862

Draft
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-mixed-key-map
Draft

Fix inferred map requirements for mixed update keys#15862
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-mixed-key-map

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

Require the whole update key type to be an atom before inferring a required singleton field. Cover the inferred domain and warning-free calls with mixed atom and integer keys.

Assisted-by: Codex:GPT-6

Require the whole update key type to be an atom before inferring a required singleton field. Cover the inferred domain and warning-free calls with mixed atom and integer keys.

Assisted-by: Codex:GPT-6
@josevalim

Copy link
Copy Markdown
Member

I am thinking the correct is to get all map keys that are dynamic and the result should be a dynamic union of said keys. I will investigate it later.

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.

2 participants