solidity/test/libsolidity/smtCheckerTests/special/chainid.sol
2020-12-29 22:17:44 +01:00

7 lines
159 B
Solidity

pragma experimental SMTChecker;
contract C {
function f() public view returns (uint) {
return block.chainid + 0; // Overflow not possible!
}
}