A little bit misleading warning message
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
Updated by nobu (Nobuyoshi Nakada) about 7 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r47431.
parse.y: fix warning message
- parse.y (arg_ambiguous_gen): fix warning message, "even" does not mean the number of spaces here. state the place to put a space and the operator. [ruby-core:64790] [Bug #10204]