https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112019-08-21T03:49:10ZRuby Issue Tracking SystemRuby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}https://bugs.ruby-lang.org/issues/10436?journal_id=808842019-08-21T03:49:10Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>File</strong> <a href="/attachments/8001">ripper-block_dup_check-10436.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8001/ripper-block_dup_check-10436.patch">ripper-block_dup_check-10436.patch</a> added</li></ul><p>This bug still occurs in the master branch. Attached is a patch that fixes the problem by overriding <code>Ripper::SexpBuilder#on_method_add_block</code>. This isn't a very clean way to fix it, but I was not able to figure out a way to fix it by modifying <code>parse.y</code>.</p> Ruby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}https://bugs.ruby-lang.org/issues/10436?journal_id=810682019-08-27T00:08:14Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>I'm overhauling ripper to multiplex the callback values and the parser union.<br>
<a href="https://github.com/nobu/ruby/tree/ripper.value" class="external">https://github.com/nobu/ruby/tree/ripper.value</a></p> Ruby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}https://bugs.ruby-lang.org/issues/10436?journal_id=980752022-06-17T09:32:16Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/18831">Feature #18831</a>: Block argument to `yield`</i> added</li></ul> Ruby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}https://bugs.ruby-lang.org/issues/10436?journal_id=1053012023-11-13T19:41:42Zjemmai (Jemma Issroff)
<ul></ul><p>This bug still exists on Ripper. Should we try revive @jeremyevans0's patch?</p>
<p>It is potentially worth noting that Prism creates a <code>ParseError</code>: "Multiple block arguments; only one block is allowed"</p> Ruby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}https://bugs.ruby-lang.org/issues/10436?journal_id=1069142024-02-20T12:01:01Zyui-knk (Kaneko Yuichiro)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>This is solved by <a href="https://bugs.ruby-lang.org/issues/20257" class="external">https://bugs.ruby-lang.org/issues/20257</a> (<a href="https://github.com/ruby/ruby/pull/9923" class="external">https://github.com/ruby/ruby/pull/9923</a>).</p>