Project

General

Profile

Bug #13336 ยป hello_bug.rb

 
1
def funny(a = true, b: nil)
2

    
3
  p a
4

    
5
end
6

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

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