solidity/test/libsolidity/syntaxTests/fallback/pure_modifier.sol

7 lines
163 B
Solidity

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