Actions
Bug #5542
closedRuby 1.9.3-p0 changed arity on default initialization method
Description
The following code worked under 1.9.2-p290 but breaks with an Argument Error (1 for 0) under 1.9.3-p0:
class Foo; end
Foo.new(nil)
Furthermore, the reported arity for Object's initialize method has changed:
ruby-1.9.2-p290 :001 > Object.instance_method(:initialize).arity
=> -1
ruby-1.9.3-p0 :001 > Object.instance_method(:initialize).arity
=> 0
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0