From: kevin.deisz@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:91872] [Ruby trunk Bug#15673] Number args + Ripper
Date: Mon, 18 Mar 2019 18:28:54 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-77140.20190318182853.22d07a14104aca64@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-15673.20190318141322@ruby-lang.org
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/
next prev parent reply other threads:[~2019-03-18 18:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-15673.20190318141322@ruby-lang.org>
2019-03-18 14:13 ` [ruby-core:91867] [Ruby trunk Bug#15673] Number args + Ripper kevin.deisz
2019-03-18 18:20 ` [ruby-core:91871] " kevin.deisz
2019-03-18 18:28 ` kevin.deisz [this message]
2019-03-18 19:33 ` [ruby-core:91874] " kevin.deisz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-77140.20190318182853.22d07a14104aca64@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).