Issue #13012 has been reported by Akira Matsuda.

----------------------------------------
Bug #13012: irb fails to define a method with a reserved-word-ish keyword argument 
https://bugs.ruby-lang.org/issues/13012

* Author: Akira Matsuda
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.4.0dev (2016-12-07 trunk 57012) [x86_64-darwin14]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
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`



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>