aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/fallback/pure_modifier.sol
blob: 20d5b0ac758227fd9886476ca71b5943659cd178 (plain) (blame)
1
2
3
4
5
6
contract C {
    uint x;
    function() pure { x = 2; }
}
// ----
// TypeError: (29-55): Fallback function must be payable or non-payable, but is "pure".