Skip to content
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

Improve Enumerable#first so that the overload does not overlap #473

Merged
merged 2 commits into from Nov 13, 2020

Conversation

mame
Copy link
Member

@mame mame commented Nov 12, 2020

Enumerable#first with no argument always returns Elem, but the second
overload (?Integer) -> Array[Elem] accidentally matches such a case.
I know Steep chooses the first match, but TypeProf chooses all matching
cases, so I'm happy if the overlap is removed.

Enumerable#first with no argument always returns Elem, but the second
overload `(?Integer) -> Array[Elem]` accidentally matches such a case.
I know Steep chooses the first match, but TypeProf chooses all matching
cases, so I'm happy if the overlap is removed.
in addition to Enumerable#first (in the previous commit)
@soutaro soutaro merged commit c76f0b7 into ruby:master Nov 13, 2020
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.

None yet

2 participants