Actions
Bug #14552
closedKernel#Integer can return a non-Integer object.
Description
I found a bug that Kernel#Integer returns any non-nil object which is a result of to_int.
obj = Object.new
def obj.to_int
"str"
end
Integer(obj) #=> "str"
Actions
Like0
Like0