solidity/test/libsolidity/syntaxTests/denominations/deprecated_year.sol

6 lines
131 B
Solidity
Raw Normal View History

2018-04-23 13:54:45 +00:00
contract C {
uint constant a = 3 years;
}
// ----
// TypeError 4820: (32-39): Using "years" as a unit denomination is deprecated.