Skip to content

Avoid overloading where arguments are identical#2559

Merged
ksss merged 2 commits intoruby:masterfrom
ksss:rbs-lint-duplicate_overload-argument
Jun 21, 2025
Merged

Avoid overloading where arguments are identical#2559
ksss merged 2 commits intoruby:masterfrom
ksss:rbs-lint-duplicate_overload-argument

Conversation

@ksss
Copy link
Copy Markdown
Collaborator

@ksss ksss commented Jun 19, 2025

It is meaningless to overload functions with exactly the same arguments, so it should be avoided.
I found overloads with identical arguments through static syntax analysis.
Different return types were consolidated into a union type.

@ksss ksss added this pull request to the merge queue Jun 21, 2025
@ksss ksss added this to the RBS 4.0 milestone Jun 21, 2025
Merged via the queue into ruby:master with commit b26b489 Jun 21, 2025
21 checks passed
@ksss ksss deleted the rbs-lint-duplicate_overload-argument branch June 21, 2025 13:00
@soutaro soutaro added the to-backport:3.10 PRs to be backported to 3.10 label Dec 11, 2025
soutaro pushed a commit that referenced this pull request Dec 11, 2025
Avoid overloading where arguments are identical
@soutaro soutaro removed the to-backport:3.10 PRs to be backported to 3.10 label Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants