Skip to content

Handle forwarding parameters#562

Open
kddnewton wants to merge 1 commit intoShopify:mainfrom
kddnewton:forwarding
Open

Handle forwarding parameters#562
kddnewton wants to merge 1 commit intoShopify:mainfrom
kddnewton:forwarding

Conversation

@kddnewton
Copy link

In the parser it currently crashes when it encounters a forwarding parameter. Instead, handle it by explicitly adding each of the three types of forwarded params.

It would be fine if you wanted to add an explicit type for this as well, but seeing as RBI doesn't have support for it, I figured this was the most explicit.

In the parser it currently crashes when it encounters a forwarding
parameter. Instead, handle it by explicitly adding each of the
three types of forwarded params.
@kddnewton kddnewton requested a review from a team as a code owner February 18, 2026 19:06
@kddnewton kddnewton closed this Feb 18, 2026
@kddnewton kddnewton reopened this Feb 18, 2026
assert_equal(<<~EXP, tree.string)
def m1(*args, **kwargs, &block); end
EXP
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a test for def m2(a, ...) as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants