Actions
Bug #10929
closedNilClass#to_proc and & don't mix?
Description
This is sort of like a "who would ever care" kind of bug. Nonetheless technically it seems like it is one. So I thought it best that I report it just the same.
class NilClass
def to_proc
Proc.new{ |*x| nil }
end
end
def f(&b)
b.call(1)
end
f(&nil)
=> NoMethodError: undefined method `call' for nil:NilClass
(Maybe it was fixed already. Filing out this issue reminded me I need to update my version of Ruby.)
Files
Actions
Like0
Like0Like0Like0Like0