[ruby-core:70835] [Ruby trunk - Bug #11535] [Rejected] inaccessable keyword arg names are allowed

From: nobu@...
Date: 2015-09-17 04:57:45 UTC
List: ruby-core #70835
Issue #11535 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Rejected

Yes, exactly `local_variable_get` is introduced for that purpose.

----------------------------------------
Bug #11535: inaccessable keyword arg names are allowed
https://bugs.ruby-lang.org/issues/11535#change-54210

* Author: bug hit
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
```ruby
foo(for: 1)
end
```

`foo` param can not be accessed directly (without `local_variable_get`) since it's a reserved word



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

In This Thread

Prev Next