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

7 lines
156 B
Solidity
Raw Normal View History

2018-04-23 13:54:45 +00:00
pragma experimental "v0.5.0";
contract C {
uint constant a = 3 years;
}
// ----
// TypeError: (62-69): Using "years" as a unit denomination is deprecated.