Project

General

Profile

Actions

Bug #13898

closed

Block parsing regression

Added by tt (Troels Thomsen) about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:82799]

Description

Upgrading to Ruby 2.4.2p198 from Ruby 2.4.1p111 introduces the following regression:

irb(main):001:0> def let(x, &b); end
=> :let
irb(main):002:0> let :foo { nil }
SyntaxError: (irb):2: syntax error, unexpected '{', expecting end-of-input
let :foo { nil }
          ^
        from /home/tt/.rubies/ruby-2.4.2/bin/irb:11:in `<main>'

Related issues 3 (0 open3 closed)

Related to Ruby master - Bug #13547: [].delete 1 { 'NG' }ClosedActions
Has duplicate Ruby master - Bug #13939: Ruby 2.4.2 has issue supporting Seattle.rb style for define_methodRejectednobu (Nobuyoshi Nakada)Actions
Has duplicate Ruby master - Bug #13976: SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0