Project

General

Profile

Actions

Bug #10288

closed

Parser incompatibility between 2.1.2 and 2.1.3

Added by matsuda (Akira Matsuda) about 10 years ago. Updated about 10 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin12.0]
Backport:
[ruby-core:65249]

Description

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})

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression Closednobu (Nobuyoshi Nakada)09/22/2014Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0