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

13 lines
192 B
Solidity
Raw Normal View History

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