From: hsbt@... Date: 2017-02-28T00:17:57+00:00 Subject: [ruby-core:79805] [Ruby trunk Bug#13012] irb fails to define a method with a reserved-word-ish keyword argument Issue #13012 has been updated by Hiroshi SHIBATA. Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONTNEED ---------------------------------------- Bug #13012: irb fails to define a method with a reserved-word-ish keyword argument https://bugs.ruby-lang.org/issues/13012#change-63235 * Author: Akira Matsuda * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0dev (2016-12-07 trunk 57012) [x86_64-darwin14] * Backport: 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONTNEED ---------------------------------------- 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: