diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 02:05:28 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-01 02:05:28 +0000 |
commit | 2a43e8983da9b7efbe03e910e0ce41acf003abfa (patch) | |
tree | 16cd56f7985b88eb6f0f29300b4476ef5878e0e2 /bootstraptest/test_class.rb | |
parent | 391fb9ecbfbb2e7cca531ec45bfdc065b646084c (diff) |
merges r28453 and r28454 from trunk into ruby_1_9_2.
--
* class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the
class should be attached to the dup'ed class, not the original
class. [ruby-core:30843] [Bug #3461]
--
* bootstraptest/test_class.rb: add a test for [ruby-core:30843].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_class.rb')
-rw-r--r-- | bootstraptest/test_class.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_class.rb b/bootstraptest/test_class.rb index a7f6d4df47..664dd2f166 100644 --- a/bootstraptest/test_class.rb +++ b/bootstraptest/test_class.rb @@ -150,3 +150,10 @@ assert_match /::C\z/, %q{ Module.new{|m| c = class m::C; name; end} c }, '[ruby-dev:38456]' + +assert_normal_exit %q{ + s = Symbol.dup + class << s + end + s.allocate.to_s +}, '[ruby-core:30843]' |