solidity/test/libsolidity/syntaxTests/globalFunctions/now_deprecate.sol
2020-05-05 21:11:15 +05:30

8 lines
137 B
Solidity

contract C {
function f() public {
now;
}
}
// ----
// TypeError: (38-41): "now" has been deprecated. Use "block.timestamp" instead.