Issue #13336 has been reported by herbert.bonaffini / gmail.com (Herbert Bonaffini).

----------------------------------------
Bug #13336: Default Parameters don't work
https://bugs.ruby-lang.org/issues/13336

* Author: herbert.bonaffini / gmail.com (Herbert Bonaffini)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.1
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
def funny(a = true, b: nil)

  p a

end

funny([1,2,3]) # => [1,2,3]

funny({k:1}) # => in `funny': unknown keyword: k (ArgumentError)


---Files--------------------------------
hello_bug.rb (132 Bytes)


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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>