solidity/test/libsolidity/smtCheckerTests/special/chainid.sol

7 lines
159 B
Solidity
Raw Normal View History

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