You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<internal:core> core/type.rb:276:in `convert_type': no implicit conversion of Range into Integer (TypeError)
from <internal:core> core/type.rb:178:in `rb_to_int_fallback'
from (irb):4:in `[]'
from (irb):4:in `<top (required)>'
from <internal:core> core/kernel.rb:407:in `loop'
from <internal:core> core/throw_catch.rb:36:in `catch'
from <internal:core> core/throw_catch.rb:36:in `catch'
from /opt/rubies/truffleruby-22.2.0/lib/gems/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from <internal:core> core/kernel.rb:376:in `load'
from <internal:core> core/kernel.rb:376:in `load'
from /opt/rubies/truffleruby-22.2.0/bin/irb:42:in `<main>'
Version Information
truffleruby 22.2.0, like ruby 3.0.3, GraalVM CE Native [x86_64-linux]
The text was updated successfully, but these errors were encountered:
There's nothing in the Ruby Spec Suite for this, so it's likely an oversight. We'll fix the issue, but if that's a blocker, you can avoid it by specifying the end value in the range, providing you have it.
postmodern
changed the title
MatchData[Range] not supported
MatchData#[] with an unbounded Range not supported
Oct 5, 2022
It does not appear that
MatchData#[]
supports accepting an unbounded range of indices.Steps To Reproduce
Expected Result
Actual Result
Version Information
The text was updated successfully, but these errors were encountered: