From: usa@... Date: 2017-03-25T15:09:52+00:00 Subject: [ruby-core:80321] [Ruby trunk Bug#13012] irb fails to define a method with a reserved-word-ish keyword argument Issue #13012 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONTNEED to 2.2: DONE, 2.3: REQUIRED, 2.4: DONTNEED ruby_2_2 r58086 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-63795 * 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: 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: