Code: Select all
class UnaryMinusBool : Actor
{
states
{
spawn:
TNT1 A 1
{
bool a = false;
int i = -a;
bool b = true;
int j = -b;
console.printf("%i %i", i, j);
}
}
}
I suspect the assertion's condition is too strict and doesn't take bool-to-int type propagation into account.