solidity/test/libsolidity/semanticTests/state/block_number.sol
2021-01-19 13:04:45 -05:00

14 lines
216 B
Solidity

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