aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/denominations/deprecated_year.sol
blob: 691c0cb05f6812ca1fe4b4ef241b4dd4d73f2151 (plain) (blame)
1
2
3
4
5
contract C {
    uint constant a = 3 years;
}
// ----
// TypeError: (32-39): Using "years" as a unit denomination is deprecated.