Yes, static analysis or a descent compiler would catch this (or even proper testing on my part).
A nice feature of VA would be to understand that context and make bSomeBooleanOther the primary suggestion while typing out the "bSome" the second time inside the if.
1 L A T E S T R E P L I E S (Newest First)
Posted - Mar 18 2016 : 3:09:49 PM A good point, I have put in a bug report for this to see what our developers make of it:
We do our best to make the suggestions helpful, but there are always going to be cases where our best guess is not as helpful as we would like, and suggestions need to be considered before accepting them.