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

7 lines
194 B
Solidity

contract C {
function blockhash(uint256 blockNumber) public returns(bytes32) { bytes32 x; return x; }
function f() public returns(bytes32) { return blockhash(3); }
}
// ----
// f() -> 0