Project

General

Profile

Actions

Bug #6347

closed

Syntax error on calling method with symbol without space and parens in else clause

Added by ko1 (Koichi Sasada) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-04-23 trunk 35432) [i386-mswin32_100]
Backport:
[ruby-dev:45563]

Description

 ささだです.

 次のようにすると syntax error になるんですが,これはこういうもんでしょうか.

if 1==2
else
p:foo
end

#=>

ruby 2.0.0dev (2012-04-23 trunk 35432) [i386-mswin32_100]
test.rb:3: syntax error, unexpected tLABEL
p:foo
^

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0