Skip to content

proc with extra args incorrectly binds wrong post args #2485

@enebo

Description

@enebo

This test in mri test suite shows it (and quite a bit more):

pr = proc {|a=:a,b=:b,c=:c,d,e|
  [a,b,c,d,e]
}

p pr.call([1,2,3,4,5,6])

recv_post_arg incorrectly binds d and e to 5,6 instead of 4,5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions