Closed mhevery closed 8 years ago
Given:
0x22 | 0xF0
Expected:
Actual:
(0x22 as int) | (0xF0 as int)
The reason we add casting is because it is required in this case
var a = 0x22; var b = 0xF0; a | b
because Typescript makes a and b a number, which does need to be down casted to an int.
a
b
int
Fixed.
Given:
Expected:
Actual:
The reason we add casting is because it is required in this case
because Typescript makes
a
andb
a number, which does need to be down casted to anint
.