solidity/test/libsolidity/syntaxTests/denominations/deprecated_year.sol
2018-06-21 20:21:02 +02:00

6 lines
126 B
Solidity

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