-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Don't suggest using fields in a static method #33613
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
Working on it. |
I think if the error is just "unknown variable cx", then it will confuse beginners. It's not obvious for beginners that this is static method. |
It's possible to add a note saying "you're in a static method so you don't have access to this type's fields". |
That would be perfect. |
bors
added a commit
that referenced
this issue
May 25, 2016
Don't suggest using fields in a static method Fixes #33613. cc @LeoTestard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: