[ruby-core:65249] [ruby-trunk - Bug #10288] [Open] Parser incompatibility between 2.1.2 and 2.1.3

From: ronnie@...
Date: 2014-09-24 01:34:04 UTC
List: ruby-core #65249
Issue #10288 has been reported by Akira Matsuda.

----------------------------------------
Bug #10288: Parser incompatibility between 2.1.2 and 2.1.3
https://bugs.ruby-lang.org/issues/10288

* Author: Akira Matsuda
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: syntax
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin12.0]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED
----------------------------------------
This code successfully prints {:foo=>1} in 2.1.2 and current trunk but causes "syntax error, unexpected modifier_if" in 2.1.3

~~~
p({foo: if true then 1 end})
~~~



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

In This Thread

Prev Next