зеркало из https://github.com/github/ruby.git
* bootstraptest/test_class.rb: add a test for [ruby-core:30843].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9b94dabe77
Коммит
be1c68caeb
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Jun 28 03:12:03 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* bootstraptest/test_class.rb: add a test for [ruby-core:30843].
|
||||||
|
|
||||||
Mon Jun 28 02:43:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
Mon Jun 28 02:43:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the
|
* class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the
|
||||||
|
|
|
@ -150,3 +150,10 @@ assert_match /::C\z/, %q{
|
||||||
Module.new{|m| c = class m::C; name; end}
|
Module.new{|m| c = class m::C; name; end}
|
||||||
c
|
c
|
||||||
}, '[ruby-dev:38456]'
|
}, '[ruby-dev:38456]'
|
||||||
|
|
||||||
|
assert_normal_exit %q{
|
||||||
|
s = Symbol.dup
|
||||||
|
class << s
|
||||||
|
end
|
||||||
|
s.allocate.to_s
|
||||||
|
}, '[ruby-core:30843]'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче