Forum: Ruby-core [Open] Incorrect Proc parsing

F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-04-19 08:51
(Received via mailing list)
Issue #9726 has been updated by Nobuyoshi Nakada.

Status changed from Closed to Open
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED,

Bug #9726: Incorrect Proc parsing

* Author: Vladimir Smelyansky
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: syntax
* Target version:
* ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
There seems to be issue in parsing with white space:

The code below works:

proc_issue ( { |n|
  "Do something"

That code causing parsing error (removing white space makes it working
`proc_issue` (`Proc`..)

proc_issue ( do |n|
  "Do something"
This topic is locked and can not be replied to.