aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/fallback/pure_modifier.sol
blob: 12d790d1c58bd8d50bbe2cce0e57dc1ac234c76b (plain) (tree)
1
2
3
4
5
6

            
                                       

       
                                                                                       
contract C {
    uint x;
    function() external pure { x = 2; }
}
// ----
// TypeError: (29-64): Fallback function must be payable or non-payable, but is "pure".