We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class MyVariadicClass def my_method required, *variadic end end class MyOptionalClass def my_method required, optional: '' end end
class MyVariadicClass def my_method: (String required, *String variadic) -> void end class MyOptionalClass def my_method: (String required, ?optional: String) -> void end
class MyClass def my_method required, *variadic, optional: '' end end
class MyClass def my_method: (String required, *String variadic, ?optional: String) -> void end
demo/commands.rb:12:16: [error] Method parameters are incompatible with declaration `(::String, *::String, ?optional: ::String) -> void` │ Diagnostic ID: Ruby::MethodArityMismatch │ └ def my_method required, *variadic, optional: ''
The text was updated successfully, but these errors were encountered:
An improvement ships with 1.0.0 related to this. #552
Sorry, something went wrong.
No branches or pull requests
Working Example
Failing Example
The text was updated successfully, but these errors were encountered: