-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
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
Steep cannot detect the type of the rescue =>
variable after they leak scope in Ruby
#919
Comments
ParadoxV5
changed the title
Steep thinks
Steep thinks variables in Oct 1, 2023
rescue =>
variable is begin
block scope but it actually leaks in Rubyrescue
block are scoped, but they actually leak in Ruby
ParadoxV5
changed the title
Steep thinks variables in
Steep cannot detect the type of the Oct 1, 2023
rescue
block are scoped, but they actually leak in Rubyrescue =>
variable after they leak scope in Ruby
begin
0/0
rescue StandardError => e
a = e
end
p a check with
begin
0/0
rescue StandardError => e
a = e
end
raise a check with default diagnostic:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruby.rb
:ruby ruby.rb
:steep check
withstrict
diagnostic:The text was updated successfully, but these errors were encountered: