Ticket #117 (closed defect: fixed)
super in overriden #new does not call #initialize
| Reported by: | lsansonetti@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.3 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
class X def self.new(x); super; end def initialize(x); p x; end end X.new(42) # does not print 42
Clearly it's because the #new that calls #initialize is added on X when it's created and is not a method of the superclass NSObject.
Change History
Note: See
TracTickets for help on using
tickets.

