Project

General

Profile

This project is closed and read-only.

Actions

Backport #7942

closed

keyword arguments must use with paren?

Backport #7942: keyword arguments must use with paren?

Added by jjyr (Jinyang Jiang) over 13 years ago. Updated over 13 years ago.


Description

def hello name: "ruby2"
puts "hello #{name}"
end

syntax error, unexpected ':', expecting ';' or '\n'

def hello(name: "ruby2")
puts "hello #{name}"
end

work well

Actions

Also available in: PDF Atom