Actions
Bug #13370
closedinstance_exec occurs "no receiver given (ArgumentError)"
Description
ArgumentError occurs in 2.4.1 on below code. It's the same in trunk.
class Foo
def one
puts 1
end
end
Foo.new.instance_exec(&:one)
# => ArgumentError: no receiver given
But it's differece behavior with 2.4.0 . Is this expected ?
# 2.4.0
Foo.new.instance_exec(&:one)
# 1
# => nil
Actions
Like0
Like0Like0