From: "charliesome (Charlie Somerville)" Date: 2013-02-01T21:56:08+09:00 Subject: [ruby-core:51793] [ruby-trunk - Bug #7768] Inherited Array class missing Issue #7768 has been updated by charliesome (Charlie Somerville). Assignee set to charliesome (Charlie Somerville) Target version set to 2.0.0 =begin Looks like a regression introduced in r26987 =end ---------------------------------------- Bug #7768: Inherited Array class missing https://bugs.ruby-lang.org/issues/7768#change-35759 Author: england (Roman Ivanilov) Status: Open Priority: Normal Assignee: charliesome (Charlie Somerville) Category: Target version: 2.0.0 ruby -v: 1.9 =begin Hello. I apologize if I missed something. I found strange behavior in ruby 1.9: class Custom < Array; end Custom.new(0){|i| i + 1}.uniq.class # => Array Custom.new(2){|i| i + 1}.uniq.class # => Custom while in 1.8 it works just as I expected. class Custom < Array; end Custom.new(0){|i| i + 1}.uniq.class # => Custom Custom.new(2){|i| i + 1}.uniq.class # => Custom * it is actual not only for the uniq method. * tested with ree-1.8.7-2010.02, ruby-1.9.2-p290, ruby-1.9.3-p375, ruby-1.9.3-p125 Any bug here? =end -- http://bugs.ruby-lang.org/