[WIP] Suppress the strict comparison warning when comparing .. with a literal#1037
[WIP] Suppress the strict comparison warning when comparing .. with a literal#1037pepkin88 wants to merge 5 commits intogkz:masterfrom
.. with a literal#1037Conversation
|
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 theLiteralclass in general).I don't know how to test for warnings, to I left the commit without tests.