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