[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78526] [Ruby trunk Bug#13012] irb fails to define a method with a reserved-word-ish keyword argument

From: ronnie@...
Date: 2016-12-07 06:54:46 UTC
List: ruby-core #78526
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>

In This Thread

Prev Next