Issue #13336 has been updated by ko1 (Koichi Sasada).

Assignee set to mame (Yusuke Endoh)

mame-san: what do you think about it?


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

* Author: herbert.bonaffini / gmail.com (Herbert Bonaffini)
* Status: Open
* Priority: Normal
* Assignee: mame (Yusuke Endoh)
* 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>