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

prototype runtime isn't aware of extend #534

Closed
pocke opened this issue Dec 19, 2020 · 0 comments · Fixed by #535
Closed

prototype runtime isn't aware of extend #534

pocke opened this issue Dec 19, 2020 · 0 comments · Fixed by #535
Assignees

Comments

@pocke
Copy link
Member

pocke commented Dec 19, 2020

rbs prototype runtime command ignores extend.
For example:

# test.rb

module M
end

class C
  extend M
end
$ rbs prototype runtime -R test.rb M C
class C
end

module M
end

Class C is extended with module M, but the generated RBS doesn't have the extended module.

I expect the following output.

$ rbs prototype runtime -R test.rb M C
class C
  extend M
end

module M
end

prototype rb generates RBS with extend expectedly.

# with the same test.rb

$ rbs prototype rb test.rb
module M
end

class C
  extend M
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant