-
Notifications
You must be signed in to change notification settings - Fork 12.8k
preserve this when extracting functions #41992
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick suggestion about naming enum member
Do you want to keep working on this? Otherwise I'd like to close it to reduce the number of open PRs. |
Yes, I will keep working on this. |
0b0a5bf
to
5502a24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine to me, no pun intended.
Fixes #39931
Previously,
this
is assumed to be a reference to class. Now we can detect whetherthis
is referring to a class or function. in the latter case, we need to passthis
to the new function.