Consider the following t.rbs and t.rb:
t.rbs
class Object
def foo: (Array[untyped]) -> void
end
t.rb
def foo(ary_of_untyped)
ary_of_untyped.each do |x, y|
y.bar
end
end
Here is the result of 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.