Array#flatten!(0) should return nil
Since Array#flatten!(0) does not modify the array I believe it should return nil. At the moment, in 1.8.7-p302, it returns itself.
=> [1, [2, 3, [4, 5]]]
Note that JRuby 1.5.6 returns nil for the above code, so either MRI is wrong or JRuby is wrong.
Updated by jeremyevans0 (Jeremy Evans) 3 months ago
- ruby -v deleted (
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0])
- Target version deleted (
- Status changed from Open to Closed
- Description updated (diff)
- Project changed from Ruby 1.8 to Backport187
- Tracker changed from Bug to Backport