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


-- 
http://bugs.ruby-lang.org/