You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case a method returns with a well defined hash then type checking works fine when you reference the values directly in the hash as seen with methods ok_direct and ok_indirect. However when using rightwards assignment no errors are given as seen with the rightward method.
$ steep check
# Type checking files:
..............................................................F......................
lib/test.rb:7:15: [error] Type `::String` does not have method `sqrt`
│ Diagnostic ID: Ruby::NoMethod
│
└ init[:str].sqrt
~~~~
lib/test.rb:15:8: [error] Type `::String` does not have method `sqrt`
│ Diagnostic ID: Ruby::NoMethod
│
└ str.sqrt
~~~~
Detected 2 problems from 1 file
The text was updated successfully, but these errors were encountered:
In case a method returns with a well defined
hash
then type checking works fine when you reference the values directly in the hash as seen with methodsok_direct
andok_indirect
. However when using rightwards assignment no errors are given as seen with therightward
method.Environment
How to reproduce
The text was updated successfully, but these errors were encountered: