-
-
Save ybiquitous/48139def8bead0f21d9cd140b7ad43ba to your computer and use it in GitHub Desktop.
Steep 0.37.0 bug reproduction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def foo(hash) | |
hash.each_with_object({}) do |(key, value), new_hash| | |
new_hash[key] = value || "" | |
end | |
end | |
end | |
pp Foo.new.foo({ "foo" => 1, "bar" => nil }) | |
#=> {"foo"=>1, "bar"=>""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def foo: (Hash[untyped, untyped]) -> Hash[untyped, untyped] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "steep", git: "https://github.com/soutaro/steep.git", ref: "b256507638d98d05faee5734a719a57ed0977688" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target :lib do | |
signature "foo.rbs" | |
check "foo.rb" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
Run the following commands:
The following error occurs:
Full output: