Project

General

Profile

Actions

Bug #432

closed

func (x,y)

Added by shyouhei (Shyouhei Urabe) over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
-
ruby -v:
Backport:
[ruby-dev:35840]

Description

=begin
以下のコードがparse errorです。

% ~/target/trunk/bin/ruby -ve 'p (1,2)'
ruby 1.9.0 (2008-08-13 revision 17576) [x86_64-linux]
-e:1: syntax error, unexpected ',', expecting ')'
p (1,2)
^
-e:1: warning: useless use of a literal in void context

もちろん1.8では通ります。

% ~/target/branches/ruby_1_8/bin/ruby -ve 'p (1,2)'
ruby 1.8.7 (2008-08-12 revision 17572) [x86_64-linux]
-e:1: warning: don't put space before argument parentheses
1
2
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0