mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
insns.def: super from at_exit
* insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80440ed07f
commit
1e56548995
4 changed files with 28 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'test/unit'
|
||||
require_relative 'envutil'
|
||||
|
||||
class TestSuper < Test::Unit::TestCase
|
||||
class Base
|
||||
|
@ -347,4 +348,14 @@ class TestSuper < Test::Unit::TestCase
|
|||
|
||||
assert_equal 'hoge', foo.new.bar
|
||||
end
|
||||
|
||||
def test_super_in_at_exit
|
||||
bug7064 = '[ruby-core:47680]'
|
||||
assert_normal_exit "at_exit {super}", bug7064
|
||||
end
|
||||
|
||||
def test_super_in_END
|
||||
bug7064 = '[ruby-core:47680]'
|
||||
assert_normal_exit "END {super}", bug7064
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue