Skip to content

Missing keywords after a second proc call #6870

@ahorek

Description

@ahorek

Environment Information
jruby 9.3.0.0 (2.6.8) 2021-09-17 85c20e7 Java HotSpot(TM) 64-Bit Server VM 15.0.2+7-27 on 15.0.2+7-27 +jit [linux-x86_64]

previous versions like jruby 9.2.19.0 aren't affected

ruby/irb#295

Script

2.times do |i|
  puts i
  p = proc { |output, complete:| }
  p.call("", complete: true)
end

Expected Behavior

0
1

Actual Behavior

0
ArgumentError: missing keyword: complete

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions