[MacRuby] #1224: "super" does not pass block to super class's method.
MacRuby
ruby-noreply at macosforge.org
Thu Apr 14 07:23:58 PDT 2011
#1224: "super" does not pass block to super class's method.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
class Foo
def sample
puts "#{self.class} : block = #{block_given?}"
end
end
class Bar < Foo
def sample
super
end
end
Foo.new.sample {} # expect => true
Bar.new.sample {} # ditto
}}}
Result of MacRuby:
{{{
$ macruby t.rb
Foo : block = true
Bar : block = false
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1224>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list