solidity/test/libsolidity/semanticTests/arithmetics/block_inside_unchecked.sol
2023-05-11 10:56:55 -05:00

12 lines
182 B
Solidity

contract C {
function f() public returns (uint y) {
unchecked{{
uint max = type(uint).max;
uint x = max + 1;
y = x;
}}
}
}
// ----
// f() -> 0x00