Project

General

Profile

Actions

Backport #7942

closed

keyword arguments must use with paren?

Added by jjyr (Jinyang Jiang) over 11 years ago. Updated over 11 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: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0