-
Notifications
You must be signed in to change notification settings - Fork 156
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
[WIP] Suppress the strict comparison warning when comparing ..
with a literal
#1037
base: master
Are you sure you want to change the base?
Conversation
Most probably |
Would you mind going the extra mile, and instead not represent (I'm lying... There's more than this that relies on it being a |
I'll look into that. |
..
with a literal..
with a literal
FWIW the issue is also visible with |
I suppose |
Would fix a few other issues, yes. |
Oh, neat. Which ones did you have in mind? |
|
(Assuming you meant double-backticks there, and GitHub ate them; if not, I'm very confused!) Hmm, I don't see it. That |
Oops, that's on me, I totally forgot |
Currently, a code like
will produce misleading warnings upon compilation:
It does that because
..
is interpreted as a callable literal, probably for compiler's simplicity. That's why I added a simple exception to the conditions when to show the warning. I also have checked for other symbols requiring attention, but I think it's only..
(I checkedLiteral::compile
's switch cases and theLiteral
class in general).I don't know how to test for warnings, to I left the commit without tests.