Keyword rest argument processing is inconsistent
def m(a: 1, **kw) | |
p a, kw | |
kw[:gotcha] = 1 | |
end | |
h = {b: 2} | |
m h | |
p h | |
h = {} | |
m h | |
p h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment