Typecasting with shorthand operators
byte b=12;

b>>=2; // Why is this legal? why does it automatically typecasts?

b=b>>2 // Why is this illegal if the above is legal
Typecasting with shorthand operators
===

byte b=12;

b>>=2; // Why is this legal? why does it automatically typecasts?

b=b>>2 // Why is this illegal if the above is legal