Skip to content

Add missing required key to __info__(:struct) type - #15453

Merged
josevalim merged 2 commits into
elixir-lang:mainfrom
lukaszsamson:ls-fix-stuct-info-type
Jun 10, 2026
Merged

Add missing required key to __info__(:struct) type#15453
josevalim merged 2 commits into
elixir-lang:mainfrom
lukaszsamson:ls-fix-stuct-info-type

Conversation

@lukaszsamson

@lukaszsamson lukaszsamson commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

required key added in #14616 and documented as optional(:required) => boolean() in Module callbacks. The hardcoded shape in Module.Types.Apply was never updated to include the added field.

Fixes #15452

AI use disclosure

Assisted-by: Claude Opus:4.8 used for generating/updating tests

Comment thread lib/elixir/test/elixir/module/types/expr_test.exs Outdated
@josevalim
josevalim merged commit fcf47f3 into elixir-lang:main Jun 10, 2026
14 of 15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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.

__info__(:struct) type missing required key

2 participants