[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67327] [ruby-trunk - Bug #10693] Regression in Ripper for keyword arg default params

From: shibata.hiroshi@...
Date: 2015-01-04 13:34:01 UTC
List: ruby-core #67327
Issue #10693 has been updated by Hiroshi SHIBATA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

----------------------------------------
Bug #10693: Regression in Ripper for keyword arg default params
https://bugs.ruby-lang.org/issues/10693#change-50785

* Author: Loren Segal
* Status: Closed
* Priority: High
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.2.0p0
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
Easy to reproduce, seems to only be present in 2.2:

```ruby
$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
$ ruby -rripper -e 'p Ripper.sexp "def x(a:1) end"'
[:program, [[:def, [:@ident, "x", [1, 4]], [:paren, [:params, nil, nil, nil, nil, [[17568, [:@int, "1", [1, 8]]]], nil, nil]], [:bodystmt, [[:void_stmt]], nil, nil, nil]]]]
```

Note the `17568` instead of the expected identifier name. I assume 17568 is the interned symbol index value instead of the value itself. Expecting to see `"a"` instead of this Fixnum.



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

In This Thread

Prev Next