Skip to content
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

Open
radiantshaw opened this issue Jan 21, 2025 · 0 comments
Open

Steep doesn't check assignment to Instance Variables #1478

radiantshaw opened this issue Jan 21, 2025 · 0 comments

Comments

@radiantshaw
Copy link

Assume the following RBS file:

class Foobar
  @baz: Integer

  def initialize: (Integer baz) -> void
end

and the following Ruby file:

class Foobar
  def initialize(baz)
    @baz = baz.to_s
  end
end

The above should give a warning about assigning type ::String to an instance variable of type ::Integer, but it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant