Skip to content

Enumerable#each_with_index is broken again #4724

@enebo

Description

@enebo
jruby -e '%i(foo bar baz).each_with_index {|v| puts v.inspect }

Prints out [:foo, 0], ... instead of :foo.

We broke this previous to 9.1.10.0 and then regressed again in .11/.12

Moved this over from #4610 so we can keep historical accuracy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions