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

From: ronnie@...
Date: 2014-09-24 01:41:22 UTC
List: ruby-core #65251
Issue #10288 has been updated by Akira Matsuda.

Status changed from Open to Closed

Oops! I'm sorry, looks like this dups with #10279

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

* Author: Akira Matsuda
* Status: Closed
* Priority: Normal
* Assignee: Tomoyuki Chikanaga
* Category: syntax
* Target version: 
* 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