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
Consider the following t.rbs and t.rb:
t.rbs
t.rb
class Object def foo: (Array[untyped]) -> void end
def foo(ary_of_untyped) ary_of_untyped.each do |x, y| y.bar end end
Here is the result of steep check
steep check
t.rb:3:6: [error] Type `nil` does not have method `bar` │ Diagnostic ID: Ruby::NoMethod │ └ y.bar ~~~
I expect no error to be displayed because I think y should be untyped, not nil.
y
untyped
nil
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Consider the following
t.rbs
andt.rb
:t.rbs
t.rb
Here is the result of
steep check
I expect no error to be displayed because I think
y
should beuntyped
, notnil
.The text was updated successfully, but these errors were encountered: