Skip to content

instance_exec named block args don't work properly #6389

Description

@jabamaus

Using mruby head the following code correctly prints 1 in cruby but it prints 2 in mruby.

instance_exec(a: 1) do |a: 2|
  puts a
end

And without the default value it fails altogether

instance_exec(a: 1) do |a:|
  puts a
end

instance_exec: missing keyword: a (ArgumentError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions