8000 Avoid overloading where arguments are identical by ksss · Pull Request #2559 · ruby/rbs · GitHub
[go: up one dir, main page]

Skip to content

Avoid overloading where arguments are identical #2559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2025

Conversation

ksss
Copy link
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
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.

1 participant
0