https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2013-06-02T16:23:43Z
Ruby Issue Tracking System
Ruby master - Feature #8449: Array#ary_plus always returns an array
https://redmine.ruby-lang.org/issues/8449?journal_id=39636
2013-06-02T16:23:43Z
zzak (zzak _)
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul><p>For what it's worth this happens with String too:</p>
<blockquote>
<blockquote>
<p>class Substring < String; end<br>
=> nil<br>
a = Substring.new<br>
=> ""<br>
b = Substring.new<br>
=> ""<br>
result = a + b<br>
=> ""<br>
result.class<br>
=> String</p>
</blockquote>
</blockquote>
<p>Maybe nobu can tell us</p>