solidity/test/libsolidity/syntaxTests/denominations/deprecated_year_050.sol
2018-04-23 16:19:51 +01:00

7 lines
156 B
Solidity

pragma experimental "v0.5.0";
contract C {
uint constant a = 3 years;
}
// ----
// TypeError: (62-69): Using "years" as a unit denomination is deprecated.