Skip to content

Array#fill not compliant with MRI  #7648

@klobuczek

Description

@klobuczek

Expected Behavior

2.6.4 :001 > [:foo].fill(nil,2,0)
 => [:foo, nil]
3.1.3 :001 > [:foo].fill(nil,2,0)
 => [:foo, nil]

Actual Behavior

jruby-9.3.9.0 :001 > [:foo].fill(nil,2,0)
 => [:foo]
jruby-9.4.1.0 :006 > [:foo].fill(nil,2,0)
 => [:foo]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions