Project

General

Profile

Actions

Bug #5214

closed

"not (true)" should not warn "(...) interpreted as grouped expression"

Added by drbrain (Eric Hodel) over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-08-21 revision 33020) [x86_64-darwin11.1.0]
Backport:
[ruby-core:39050]

Description

If you have a space between "not" and "(" ruby will warn.

Since it is normal to use "not" with a grouped expression ruby should not warn

The workaround is to remove the space or change to "!" instead of "not"


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #6674: 1.9 parser regression: not ()Closedshugo (Shugo Maeda)06/30/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0