Bug #6907 ยป fail.patch
test/ruby/test_super.rb | ||
---|---|---|
}
|
||
assert_equal 'hi', y.hello
|
||
end
|
||
def test_super_in_thread
|
||
hoge = Class.new {
|
||
def bar; 'hoge'; end
|
||
}
|
||
foo = Class.new(hoge) {
|
||
def bar; Thread.new { super }.join.value; end
|
||
}
|
||
assert_equal 'hoge', foo.new.bar
|
||
end
|
||
end
|