[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
Issue #15723 has been updated by zverok (Victor Shepelev).
3 messages
2019/03/31
[ruby-core:91872] [Ruby trunk Bug#15673] Number args + Ripper
From:
kevin.deisz@...
Date:
2019-03-18 18:28:54 UTC
List:
ruby-core #91872
Issue #15673 has been updated by kddeisz (Kevin Deisz).
Some more investigation yields that `compile_error` is called with:
identifier false is not valid to get
----------------------------------------
Bug #15673: Number args + Ripper
https://bugs.ruby-lang.org/issues/15673#change-77140
* Author: kddeisz (Kevin Deisz)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.7.0dev (2019-03-18 trunk 67295) [x86_64-darwin18]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Hi there -
Love the new number args for blocks. When I run
``` ruby
[1, 2, 3].map { @1 * 2 }
```
everything works. However, when I run:
```ruby
require 'ripper'; Ripper.new('[1, 2, 3].map { @1 * 2 }').parse
```
it returns nothing and says there's an error.
--
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>