solidity/test/libsolidity/semanticTests/cleanup/exp_cleanup_nonzero_base.sol

12 lines
200 B
Solidity

contract C {
function f() public pure returns (uint8 x) {
unchecked {
uint16 x = 0x166;
return uint8(x)**uint8(uint8(2)**uint8(8));
}
}
}
// ----
// f() -> 0x1