https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112012-03-11T15:13:44ZRuby Issue Tracking SystemRuby master - Bug #5214: "not (true)" should not warn "(...) interpreted as grouped expression" https://redmine.ruby-lang.org/issues/5214?journal_id=244002012-03-11T15:13:44Zko1 (Koichi Sasada)
<ul><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul> Ruby master - Bug #5214: "not (true)" should not warn "(...) interpreted as grouped expression" https://redmine.ruby-lang.org/issues/5214?journal_id=247562012-03-18T18:46:01Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul> Ruby master - Bug #5214: "not (true)" should not warn "(...) interpreted as grouped expression" https://redmine.ruby-lang.org/issues/5214?journal_id=281922012-07-18T16:05:14Zshugo (Shugo Maeda)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r36434.<br>
Eric, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>
<p>parse.y (primary): allow an empty grouped expression as the<br>
operand of the not operator (e.g., not ()).<br>
<a href="/issues/6674">[ruby-core:45976]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: 1.9 parser regression: not () (Closed)" href="https://redmine.ruby-lang.org/issues/6674">#6674</a>]</p>
</li>
<li>
<p>parse.y (parser_yylex): show no warning for a grouped expression<br>
as the operand of the not operator (e.g., not (a)) or as an<br>
argument of a method call without parentheses (e.g., foo (a)).<br>
<a href="/issues/5214">[ruby-core:39050]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: "not (true)" should not warn "(...) interpreted as grouped expression" (Closed)" href="https://redmine.ruby-lang.org/issues/5214">#5214</a>]</p>
</li>
</ul>