[ruby-core:64790] [ruby-trunk - Bug #10204] [Open] A little bit misleading warning message

From: ronnie@...
Date: 2014-09-05 10:07:38 UTC
List: ruby-core #64790
Issue #10204 has been reported by Akira Matsuda.

----------------------------------------
Bug #10204: A little bit misleading warning message
https://bugs.ruby-lang.org/issues/10204

* Author: Akira Matsuda
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0dev (2014-08-20 trunk 47225) [x86_64-darwin13]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
~~~
ruby -we "''.scan //"
~~~
warns "-e:1: warning: ambiguous first argument; put parentheses or even spaces".
Despite ruby indicates me to put spaces there, I actually couldn't stop ruby warning no matter how much spaces I put there.

~~~
% ruby -we "''.scan                                   //"
-e:1: warning: ambiguous first argument; put parentheses or even spaces
~~~



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next