Actions
Bug #13074
closedWhen executing instance_exec with symbol.to_proc, it ignores first argument.
Bug #13074:
When executing instance_exec with symbol.to_proc, it ignores first argument.
Description
Is this intentional?
# Ruby 2.3.3
« instance_exec(1) { |i| i.itself }
=> 1
« instance_exec(1, &:itself)
=> 1
# Ruby 2.4.0
« instance_exec(1) { |i| i.itself }
=> 1
« instance_exec(1, &:itself)
=> main
Actions