solidity/test/libsolidity/syntaxTests/denominations/deprecated_year.sol
2022-04-01 23:41:18 -05:00

6 lines
141 B
Solidity

contract C {
uint constant a = 3 years;
}
// ----
// TypeError 4820: (32-39='3 years'): Using "years" as a unit denomination is deprecated.