[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70423] [Ruby trunk - Bug #11389] Regression in method parameter parsing

From: usa@...
Date: 2015-08-17 09:03:04 UTC
List: ruby-core #70423
Issue #11389 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: DONE to 2.0.0: UNK=
NOWN, 2.1: DONE, 2.2: DONE

----------------------------------------
Bug #11389: Regression in method parameter parsing
https://bugs.ruby-lang.org/issues/11389#change-53832

* Author: Felix B=C3=BCnemann
* Status: Closed
* Priority: Normal
* Assignee:=20
* ruby -v: ruby 2.3.0dev (2015-07-22 trunk 51345) [x86_64-darwin15]
* Backport: 2.0.0: UNKNOWN, 2.1: DONE, 2.2: DONE
----------------------------------------
There is a regression in parameter parsing with current ruby-2.2-head and r=
uby-head:

```ruby
# ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
def foo fn, options, █ end
=3D> :foo
foo -> {}, foo: :bar do; end
=3D> nil
# ruby 2.2.2p133 (2015-06-12 revision 50295) [x86_64-darwin15]
# ruby 2.3.0dev (2015-07-22 trunk 51345) [x86_64-darwin15]
def foo fn, options, █ end
=3D> :foo
foo -> {}, foo: :bar do; end
SyntaxError: unexpected keyword_do, expecting end-of-input
# workaround:
foo -> {}, { foo: :bar } do; end
=3D> nil
```



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

In This Thread

Prev Next