solidity/test/libsolidity/semanticTests/types/packing_signed_types.sol
2019-07-08 16:04:52 +02:00

9 lines
203 B
Solidity

contract test {
function run() public returns(int8 y) {
uint8 x = 0xfa;
return int8(x);
}
}
// ----
// run() -> 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa