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

Fix method parameter type checking #552

Merged
merged 1 commit into from
May 12, 2022
Merged

Fix method parameter type checking #552

merged 1 commit into from
May 12, 2022

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented May 12, 2022

With rest and keyword params.

Type checking the following type definition fails.

class Foo
  def bar: (*String, name: String) -> void
end
class Foo
  def bar(*args, name:)      # <- type error reported here
  end
end

With rest and keyword params.
@soutaro soutaro enabled auto-merge May 12, 2022 03:17
@soutaro soutaro merged commit ec2061a into master May 12, 2022
@soutaro soutaro deleted the rest-keyword-params branch May 12, 2022 03:20
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.

1 participant