Skip to content

Fix tuple_fetch with nonempty negative#15492

Open
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-tuple-fetch
Open

Fix tuple_fetch with nonempty negative#15492
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-tuple-fetch

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

recompute optional? instead of trusting projected value when tuple_take_element flags found?.

Note that it adds another reduce over negs that the short path if tuple_pair_projection_keeps_full_fst?(negative, bdd), do: value, else: ... tried to avoid

Fixes #15491

Assisted-by: Claude Opus 4.8 & GPT 5.5

recompute `optional?` instead of trusting projected value when `tuple_take_element` flags `found?`
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.

Descr.tuple_fetch returns :badindex for valid access on difference types

1 participant