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

Parse error with required kwargs and omitted parens #6268

Open
pvande opened this issue May 15, 2024 · 0 comments
Open

Parse error with required kwargs and omitted parens #6268

pvande opened this issue May 15, 2024 · 0 comments

Comments

@pvande
Copy link

pvande commented May 15, 2024

Given a method definition like this:

def foo arg:
  123
end

mruby 3.3.0 parses the definition as:

def foo(arg: 123)
end

… while C Ruby parses it as:

def foo(arg:)
  123
end

I could find no documentation that suggests this is a deliberate change in behavior.

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