From: "ko1 (Koichi Sasada)" Date: 2012-10-27T05:56:19+09:00 Subject: [ruby-dev:46279] [ruby-trunk - Feature #4299] 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 Nakada) 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 -- http://bugs.ruby-lang.org/