diff options
author | Jeremy Evans <[email protected]> | 2019-04-19 22:19:41 +0900 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-08-30 12:39:31 -0700 |
commit | 6a9ce1fea89bc5c6518dd6bb7ff3b824a9321976 (patch) | |
tree | d1e954802cfcb8fafb71b2e16dd7d957326d70d7 /vm_core.h | |
parent | afae8555da07b2349a245d6646e3b36a49f027d5 (diff) |
Support **nil syntax for specifying a method does not accept keyword arguments
This syntax means the method should be treated as a method that
uses keyword arguments, but no specific keyword arguments are
supported, and therefore calling the method with keyword arguments
will raise an ArgumentError. It is still allowed to double splat
an empty hash when calling the method, as that does not pass
any keyword arguments.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2395
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -385,6 +385,7 @@ struct rb_iseq_constant_body { unsigned int has_block : 1; unsigned int ambiguous_param0 : 1; /* {|a|} */ + unsigned int accepts_no_kwarg : 1; } flags; unsigned int size; |