From: nagachika00@... Date: 2017-03-27T16:09:36+00:00 Subject: [ruby-core:80397] [Ruby trunk Bug#13012] irb fails to define a method with a reserved-word-ish keyword argument Issue #13012 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.2: DONE, 2.3: REQUIRED, 2.4: DONTNEED to 2.2: DONE, 2.3: DONE, 2.4: DONTNEED ruby_2_3 r58170 merged revision(s) 57027. ---------------------------------------- Bug #13012: irb fails to define a method with a reserved-word-ish keyword argument https://bugs.ruby-lang.org/issues/13012#change-63886 * Author: matsuda (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: DONE, 2.3: DONE, 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: