From: "glyn (Glyn Normington)" Date: 2013-03-22T00:19:55+09:00 Subject: [ruby-core:53609] [ruby-trunk - Bug #8140][Open] Incorrect warning: `+' after local variable is interpreted as binary operator Issue #8140 has been reported by glyn (Glyn Normington). ---------------------------------------- Bug #8140: Incorrect warning: `+' after local variable is interpreted as binary operator https://bugs.ruby-lang.org/issues/8140 Author: glyn (Glyn Normington) Status: Open Priority: Low Assignee: matz (Yukihiro Matsumoto) Category: syntax Target version: ruby -v: ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1] The statement: puts '' +'' generates an invalid warning when executed with "ruby -w" which (a) implies a syntactical ambiguity where there is none, and (b) refers to a "local variable" of which there are none. Note that: puts ''+'' and: puts '' + '' produce no warnings. -- http://bugs.ruby-lang.org/