Skip to content

Conversation

casperisfine
Copy link

The first versions of ruby that introduced ruby2_keywords had a small bug, only the first method in a chain of call needed to mark itself as using ruby2_keywords smeantic, e.g.

def foo(a:); end

def bar(*args)
  foo(*args)
end

def baz(*args)
  bar(*args)
end
ruby2_keywords :baz

baz(a: 1)

Up to 3.1 the above cause no issue,
however in 3.2, bar also need to be marked with ruby2_keywords.

The first versions of ruby that introduced ruby2_keywords
had a small bug, only the first method in a chain of call needed to
mark itself as using ruby2_keywords smeantic, e.g.

```ruby
def foo(a:); end

def bar(*args)
  foo(*args)
end

def baz(*args)
  bar(*args)
end
ruby2_keywords :baz

baz(a: 1)
```

Up to 3.1 the above cause no issue,
however in 3.2, `bar` also need to be marked with `ruby2_keywords`.
@casperisfine
Copy link
Author

👋 @t6d any chance to get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants