With the following code:
var x:boolean = true;
x &= false;
Results in error TS2447: The '&=' operator is not allowed for boolean types. Consider using '&&' instead.
I've looked around but can't find a reason why, there's a PR to make the error what it is: https://github.com/Microsoft/TypeScript/issues/712 but still can't find the underlying reason for it.
Can someone clarify?