Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

//test:test_PosTests/testdata/parser/kwnil_errors_prism #393

Open
egiurleo opened this issue Dec 20, 2024 · 0 comments
Open

//test:test_PosTests/testdata/parser/kwnil_errors_prism #393

egiurleo opened this issue Dec 20, 2024 · 0 comments

Comments

@egiurleo
Copy link

def foo(**nil, **nil); end is incorrect Ruby syntax because it uses **nil as a post argument.

When the legacy Sorbet parser encounters this, it replaces the entire tree with a Nil node.

Currently, with our Prism translation, this is not handled at all and Sorbet crashes.

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

No branches or pull requests

1 participant