-
Notifications
You must be signed in to change notification settings - Fork 93
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 doesn't check assignment to Instance Variables #1478
Comments
Reproduced on my local. This is not a bug of Steep. It's a bug of type of activesupport gem. For example, I replaced
I checked the type of
Could you check the gem is installed on your project? If installed, it's not a bug of Steep. |
…ithFormat#to_s `#to_s` methods should return String object. Additionally, I moved the definitions to activesupport-6.0.rbs, not activesupport.rbs because `#to_s` overrides ware marked as deprecated since v7.0, and removed since v7.1. refs: * rails/rails#43772 * rails/rails@e420c33 * soutaro/steep#1478
I posted the fix for the type of activesupport gem to the gem_rbs_collection repo. I suppose it will fix your problem. Please check it. |
…ithFormat#to_s `#to_s` methods should return String object. Additionally, I moved the definitions to activesupport-6.0.rbs, not activesupport.rbs because `#to_s` overrides ware marked as deprecated since v7.0, and removed since v7.1. refs: * rails/rails#43772 * rails/rails@e420c33 * soutaro/steep#1478
…ithFormat#to_s `#to_s` methods should return String object. Additionally, I moved the definitions to activesupport-6.0.rbs, not activesupport.rbs because `#to_s` overrides ware marked as deprecated since v7.0, and removed since v7.1. refs: * rails/rails#43772 * rails/rails@e420c33 * soutaro/steep#1478
…ithFormat#to_s (#791) `#to_s` methods should return String object. Additionally, I moved the definitions to activesupport-6.0.rbs, not activesupport.rbs because `#to_s` overrides ware marked as deprecated since v7.0, and removed since v7.1. refs: * rails/rails#43772 * rails/rails@e420c33 * soutaro/steep#1478
Assume the following RBS file:
and the following Ruby file:
The above should give a warning about assigning type
::String
to an instance variable of type::Integer
, but it doesn't.The text was updated successfully, but these errors were encountered: