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


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