I found some questions concerning short
arithmetic but none of them compared the following three cases. I wonder why these two pieces of code are ok
(a)
short m = 1;
m += m;
(b)
short m = 1;
m += m + m;
while this
(c)
short m = 1;
m = m + m;
leads to the error "Type mismatch: cannot convert from int to short" ?