No warning: found = in conditional, should be ==

Issue #4299 has been updated by ko1 (Koichi Sasada).

Target version changed from 2.0.0 to next minor

放置されているようなので next minor に送っておきます.

Feature #4299: no warning: found = in conditional, should be ==
https://bugs.ruby-lang.org/issues/4299#change-31656

Author: znz (Kazuhiro NISHIYAMA)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi N.)
Category: core
Target version: next minor

=begin
http://d.hatena.ne.jp/nagachika/20110119/ruby_trunk_changes_30595_30603
で知ったのですが、右辺の種類によっては「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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs