Code: Select all
class Test
{
void DoSomething()
{
int x = 0;
if (x = 0) // typo, should be "=="
{
// ...
}
}
}
In release builds, execution seems to proceed normally, but who knows what could happen then. The error does not appear if "=" is replaced with "==" (as it should be).