Actions
Bug #9611
closedArithmetic operator following parentheses-less method gives ArgumentError
Description
It would be better to explain this with an example:
> 'a'.length -1
ArgumentError: wrong number of arguments (1 for 0)
from (pry):1:in `length'
Other ways of writing this expression work as expected:
> 'a'.length() -1
=> 0
> 'a'.length-1
=> 0
> 'a'.length- 1
=> 0
> 'a'.length - 1
=> 0
Actions
Like0
Like0Like0