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

7 lines
168 B
Solidity

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