« Return to Thread: [ruby-dev:38717] [Bug #1692] warning: useless use of a literal in void context

[ruby-dev:38717] [Bug #1692] warning: useless use of a literal in void context

by Nobuyoshi Nakada-3 :: Rate this Message:

Reply to Author | View in Thread

Bug #1692: warning: useless use of a literal in void context
http://redmine.ruby-lang.org/issues/show/1692

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal
ruby -v: ruby 1.9.2dev (2009-06-24 trunk 23837) [i686-linux]

1.8 では
warning: useless use of a literal in void context
が出るときに 1.9 だと何も出ません。

% ruby18 -ve '1'
ruby 1.8.8dev (2009-06-23 revision 23825) [i686-linux]
-e:1: warning: useless use of a literal in void context
% ruby-trunk -ve '1'
ruby 1.9.2dev (2009-06-24 trunk 23837) [i686-linux]
%


----------------------------------------
http://redmine.ruby-lang.org

 « Return to Thread: [ruby-dev:38717] [Bug #1692] warning: useless use of a literal in void context