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

11 lines
161 B
Solidity

contract C {
constructor() {}
function f() public returns (uint) {
return block.number;
}
}
// ----
// constructor()
// f() -> 2
// f() -> 3