[MacRuby-devel] [MacRuby] #514: Singleton + Inheritance causes ArgumentError
MacRuby
ruby-noreply at macosforge.org
Fri Dec 18 20:46:48 PST 2009
#514: Singleton + Inheritance causes ArgumentError
--------------------------------+-------------------------------------------
Reporter: lastobelus@… | Owner: lsansonetti@…
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/>
More information about the MacRuby-devel
mailing list