[Assigned] no warning: found = in conditional, should be ==

Issue #4299 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Nobuyoshi N.


Bug #4299: no warning: found = in conditional, should be ==

Author: Kazuhiro NISHIYAMA
Status: Assigned
Priority: Normal
Assignee: Nobuyoshi N.
Category: core
Target version:
ruby -v: ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]

=begin
ruby-trunk-changes r30595 - r30603 - ruby trunk changes
で知ったのですが、右辺の種類によっては「warning: found = in conditional, should be
==」が出ないことがあるようです。

% ruby-trunk -ve ‘!=“”’
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]
-e:1: warning: found = in conditional, should be ==
% ruby-trunk -ve '!
=1’
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]
-e:1: warning: found = in conditional, should be ==
% ruby-trunk -ve ‘!={}’
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]
% ruby-trunk -ve '!
=[]’
ruby 1.9.3dev (2011-01-20 trunk 30614) [i686-linux]
%
=end