Actions
Bug #13012
closedirb fails to define a method with a reserved-word-ish keyword argument
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-12-07 trunk 57012) [x86_64-darwin14]
Backport:
Description
For example
def a(if:) end
is a valid ruby code but this doesn't work on irb.
This seems to be happening for all keywords that are listed in RubyLex::ENINDENT_CLAUSE
Actions
Like0
Like0Like0Like0Like0Like0Like0