solidity/test/libsolidity/semanticTests/state/block_number.sol

11 lines
161 B
Solidity
Raw Normal View History

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