Issue #7942 has been reported by jjyr (jy j). ---------------------------------------- Backport #7942: keyword arguments must use with quot? https://bugs.ruby-lang.org/issues/7942 Author: jjyr (jy j) Status: Open Priority: Normal Assignee: Category: Target version: def hello name: "ruby2" puts "hello #{name}" end syntax error, unexpected ':', expecting ';' or '\n' def hello(name: "ruby2") puts "hello #{name}" end work well
on 2013-02-24 14:40
on 2013-02-26 01:39
Issue #7942 has been updated by ko1 (Koichi Sasada). Category set to core Target version set to 2.1.0 ruby -v set to -v ---------------------------------------- Bug #7942: keyword arguments must use with quot? https://bugs.ruby-lang.org/issues/7942#change-37016 Author: jjyr (jy j) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: core Target version: 2.1.0 ruby -v: -v def hello name: "ruby2" puts "hello #{name}" end syntax error, unexpected ':', expecting ';' or '\n' def hello(name: "ruby2") puts "hello #{name}" end work well
on 2013-02-26 10:33
Issue #7942 has been updated by nobu (Nobuyoshi Nakada). Subject changed from keyword arguments must use with quot? to keyword arguments must use with paren? ---------------------------------------- Backport #7942: keyword arguments must use with paren? https://bugs.ruby-lang.org/issues/7942#change-37091 Author: jjyr (jy j) Status: Assigned Priority: Normal Assignee: nagachika (Tomoyuki Chikanaga) Category: Target version: def hello name: "ruby2" puts "hello #{name}" end syntax error, unexpected ':', expecting ';' or '\n' def hello(name: "ruby2") puts "hello #{name}" end work well
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.