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

7 lines
232 B
Solidity
Raw Normal View History

contract C {
fallback() external payable { }
function f() public pure { }
}
// ----
// Warning: (0-83): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.