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