-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Address SI-9675 Add warning about non-sensible equals in anonymous functions #5662
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
I signed the CLA |
review @adriaanm |
Good catch! Looks like a good example of where we could sharpen the distinction between artifact and synthetic. |
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.
The fix looks good, but the test could be rewritten as a neg/ test instead of a run/ one, right? You'll need to create a neg/t9675.flags file that contains -Xfatal-warnings
, but that should be it.
@adriaanm But that does not guarantee that we get a warning for every single function. It would be enough to get a warning for a single function for it to succeed. |
It does, as far as I can see -- neg tests will check that exactly the
errors in the check file are emitted. There's no need to run your app to
get the errors, just compile it
…On Tue, Jan 31, 2017 at 08:32 Aristotelis Dossas ***@***.***> wrote:
@adriaanm <https://github.com/adriaanm> But that does not guarantee that
we get a warning for every single function. It would be enough to get a
warning for a single function for it to succeed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5662 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFjy9m1zHhOzogPMrU24uBxu9a_L94Mks5rX1QagaJpZM4LuKqe>
.
|
Ok I made the changes. Now it is more clear to me what "run" means. Thanks @adriaanm |
Sure! Thanks for the quick follow up.
…On Tue, Jan 31, 2017 at 11:11 Aristotelis Dossas ***@***.***> wrote:
Ok I made the changes. Now is more clear to me what "run" means. Thanks
@adriaanm <https://github.com/adriaanm>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5662 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFjy9T01dx97RGuQ7ZWSRxtkXzDDwDgks5rX3lmgaJpZM4LuKqe>
.
|
How is this test related to this PR?
|
@adriaanm it doesn't it's about another bug that I was working on, I pushed it by mistake. I will remove it |
@adriaanm I removed it. It should be fine now |
Thanks, @teldosas! For your next fix, please use a commit title more like "SI-9675 warn about non-sensible equals in anonymous functions" (start with ticket number, use active voice) |
There was no adequate emoji to say, "oh, artifact vs synthetic, I was just wondering about that." |
The problem was that in an attempt to address an issue with #4473, warnings about non-sensible equals were removed for synthetic entities. But an anonymous function is also a synthetic entity, so warnings were removed for these too by mistake.