Project

General

Profile

Actions

Bug #10142

closed

named params don't always capture passed named args

Added by rits (First Last) over 10 years ago. Updated about 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
[ruby-core:64402]

Description

irb(main):007:0> def foo(a, b: nil); [a, b] end
:foo
irb(main):008:0> foo b: 1
[
  [0] {
    :b => 1
  },
  [1] nil
]

would be better if this raised


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameterRejectedmatz (Yukihiro Matsumoto)10/01/2014Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0