From: "mame (Yusuke Endoh)" Date: 2012-07-14T18:39:18+09:00 Subject: [ruby-core:46469] [ruby-trunk - Bug #6674][Assigned] 1.9 parser regression: not () Issue #6674 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned ---------------------------------------- Bug #6674: 1.9 parser regression: not () https://bugs.ruby-lang.org/issues/6674#change-28098 Author: zenspider (Ryan Davis) Status: Assigned Priority: Normal Assignee: shugo (Shugo Maeda) Category: core Target version: ruby -v: 1.9 & 2.0 4482 % ruby18 -v ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0] 4483 % ruby19 -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] 4484 % ruby18 -cwe '! (a); not (a); ! (); not ()' Syntax OK 4485 % ruby19 -cwe '! (a)' Syntax OK 4486 % ruby19 -cwe 'not (a)' -e:1: warning: (...) interpreted as grouped expression Syntax OK 4487 % ruby19 -cwe '! ()' Syntax OK 4488 % ruby19 -cwe 'not ()' -e:1: syntax error, unexpected ')' 4489 % ruby20 -v ruby 2.0.0dev (2012-05-05 trunk 35541) [x86_64-darwin11.3.0] 4490 % ruby20 -cwe '! (a)' Syntax OK 4491 % ruby20 -cwe 'not (a)' -e:1: warning: (...) interpreted as grouped expression Syntax OK 4492 % ruby20 -cwe '! ()' Syntax OK 4493 % ruby20 -cwe 'not ()' -e:1: warning: (...) interpreted as grouped expression -e:1: syntax error, unexpected ')' 4494 % -- http://bugs.ruby-lang.org/