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

Allow Array#[] to receive Range of optional Integer #732

Merged

Conversation

pocke
Copy link
Member

@pocke pocke commented Aug 9, 2021

Array#[] and Array#[]= accept a Range of optional Integer as the argument in Ruby, but the RBS doesn't allow it unexpectedly.

By the way, String#[] already accepts it.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pocke pocke merged commit c09ab98 into ruby:master Aug 10, 2021
@pocke pocke deleted the Allow_Array____to_receive_Range_of_optional_Integer branch August 10, 2021 04:20
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.

2 participants