Skip to content

Do not report empty function arities as badarity - #15922

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-no-badarity-on-empty
Sep 21, 2026
Merged

josevalim merged 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-no-badarity-on-empty

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

This PR reuses BDD traversal from fun_other_non_empty_arities in fun_normalize when deciding between :badfun and {:badarity, _}. Downside of the approach is with this change the error cases are no longer O(1)

Fixes #15921

Assisted-By: Claude Opus 5

@josevalim
josevalim merged commit 0847696 into elixir-lang:main Sep 21, 2026
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.

Empty static arity shadows nonempty dynamic in function appication

2 participants