[219] Invert If broken
BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Given the code:
bool condition = true;
if(!condition) {
Console.WriteLine("*"); // This should only be written if not condition.
}
Console.WriteLine("!"); // This should always be written!
If I apply the Invert if QuickFix the resulting code is:
bool condition = true;
if(condition) {
Console.WriteLine("!"); // This should always be written!
}
else {
Console.WriteLine("*"); // This should only be written if not condition.
}
Regards,
Pablo
-
BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
iD8DBQFECNPxvooSiBfQCSoRAl1jAKDjG4cKCrovDhsejGOT7sWWXblUUACgpZOG
BMass7pwfIg8QqOeedQWxYI=
=2T/s
-
END PGP SIGNATURE-----
Please sign in to leave a comment.
Thanks for your report, we'll fix it.
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> Version: GnuPG v1.2.1 (MingW32)
>>
>> iD8DBQFECNPxvooSiBfQCSoRAl1jAKDjG4cKCrovDhsejGOT7sWWXblUUACgpZOG
>> BMass7pwfIg8QqOeedQWxYI=
>> =2T/s