#514: Singleton + Inheritance causes ArgumentError
--------------------------------+-------------------------------------------
Reporter: lastobe...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: Singleton, inheritance
--------------------------------+-------------------------------------------
Combining the use of Singleton with inheritance causes ArgumentError. This
bug breaks log4r.
== Steps to Reproduce ==
Use Singleton in a class that is a sub class.
Example:
{{{
require "singleton"
class Mary
end
class Bob < Mary
include Singleton
end
puts "Bob.instance: #{Bob.instance.inspect}"
}}}
== Result ==
{{{
core:in `new:': wrong number of arguments (6 for 0) (ArgumentError)
from
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/singleton.rb:107:in
`instance'
from single2.rb:1:in `<main>'
}}}
Tested on 10.6 with beta 2 release, and 10.5.7 with r3131
--
Ticket URL: <http://www.macruby.org/trac/ticket/514>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel