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

Range#step with no block and non-Numeric values gives undefined method `step' #2824

Closed
eregon opened this issue Jan 10, 2023 · 0 comments
Closed

Comments

@eregon
Copy link
Member

eregon commented Jan 10, 2023

$ ruby -e 'p ("a".."z").step(3).to_a'   
["a", "d", "g", "j", "m", "p", "s", "v", "y"]
$ jt -q ruby -e 'p ("a".."z").step(3).to_a'
<internal:core> core/enumerator.rb:103:in `each_with_block': undefined method `step' for Truffle::RangeOperations:Module (NoMethodError)
	from <internal:core> core/enumerator.rb:94:in `each'
	from <internal:core> core/enumerable.rb:291:in `to_a'
	from -e:1:in `<main>'

Found with @nirvdrum

Trivial to fix, I'll fix it.

@eregon eregon self-assigned this Jan 10, 2023
@eregon eregon added this to the 23.0.0 Release milestone Jan 10, 2023
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Jan 16, 2023
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Jan 17, 2023
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Feb 16, 2023
eregon added a commit to ruby/spec that referenced this issue Feb 27, 2023
john-heinnickel pushed a commit to thermofisher-jch/truffleruby that referenced this issue Aug 16, 2023
seven1m pushed a commit to seven1m/ruby_spec that referenced this issue Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant