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
Change context class to attached class inside define_method
#64
Comments
|
@jez I'd like to help with this but I assume it involves a fair bit of knowledge of C++, no? |
* Harden $__sorbet_ruby_realpath usage
I just added |
This should typecheck
https://sorbet.run/#class%20A%0A%20%20def%20self.my_dsl%0A%20%20%20%20define_method(%3Amagic_method)%20do%0A%20%20%20%20%20%20foo%0A%20%20%20%20end%0A%20%20end%0A%0A%20%20def%20foo%0A%20%20%20%20%3Afoo%0A%20%20end%0Aend%0A%0Aclass%20B%20%3C%20A%0A%20%20my_dsl%0Aend
Originally reported by @pt-stripe at https://jira.corp.stripe.com/browse/RUBYPLAT-1142
The text was updated successfully, but these errors were encountered: