https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-10-24T17:03:57ZRuby Issue Tracking SystemRuby master - Bug #14048: Enumerable#sum sometimes assumes objects are `Range`s when they're nothttps://bugs.ruby-lang.org/issues/14048?journal_id=675712017-10-24T17:03:57Zmrkn (Kenta Murata)muraken@gmail.com
<ul><li><strong>Assignee</strong> set to <i>mrkn (Kenta Murata)</i></li></ul> Ruby master - Bug #14048: Enumerable#sum sometimes assumes objects are `Range`s when they're nothttps://bugs.ruby-lang.org/issues/14048?journal_id=675802017-10-25T01:40:26Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r60411.</p>
<hr>
<p>range.c: check if exclude_end? is defined</p>
<ul>
<li>range.c (rb_range_values): should raise TypeError if necessary<br>
method is not defined, not NoMethodError, when trying to tell if<br>
the object is a Range and extract info.<br>
<a href="/issues/14048">[ruby-core:83541]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Enumerable#sum sometimes assumes objects are `Range`s when they're not (Closed)" href="https://bugs.ruby-lang.org/issues/14048">#14048</a>]</li>
</ul>