https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112018-12-23T23:48:32ZRuby Issue Tracking SystemRuby master - Bug #15457: Weird behaviour when having multiple arguments of same name and splat operatorhttps://redmine.ruby-lang.org/issues/15457?journal_id=758612018-12-23T23:48:32Zgraywolf (Gray Wolf)
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/75861/diff?detail_id=50731">diff</a>)</li></ul> Ruby master - Bug #15457: Weird behaviour when having multiple arguments of same name and splat operatorhttps://redmine.ruby-lang.org/issues/15457?journal_id=758682018-12-24T09:04:20Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/14611">Bug #14611</a>: Exotic method parameters bug</i> added</li></ul> Ruby master - Bug #15457: Weird behaviour when having multiple arguments of same name and splat operatorhttps://redmine.ruby-lang.org/issues/15457?journal_id=758692018-12-24T09:08:32Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Thank you. This is duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Exotic method parameters bug (Closed)" href="https://redmine.ruby-lang.org/issues/14611">#14611</a>. The behavior has been changed in trunk (and 2.6).</p>
<pre><code>$ cat bug.rb
def test(_a, b, *_a)
pp _a
pp b
end
test(*%W{a b c d e})
$ ./local/bin/ruby -v bug.rb
ruby 2.6.0dev (2018-12-24 trunk 66525) [x86_64-linux]
"a"
"b"
</code></pre>
<p><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Exotic method parameters bug (Closed)" href="https://redmine.ruby-lang.org/issues/14611">#14611</a> is marked as backport required. Please wait.</p>