Project

General

Profile

Actions

Bug #5442

closed

heredoc inside Hash initialization

Added by jhej (Jonatan Hejzlar) over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
1.9.2p290 (2011-07-09 revision 32553)
Backport:
[ruby-core:40134]

Description

Shouldn't this initialization be valid?

Hash[:a,<<-EOS
some text
EOS
,:b,'other']

gives the following error
syntax error, unexpected ',', expecting ']'

Actions

Also available in: Atom PDF

Like0
Like0Like0