solidity/test/libsolidity/syntaxTests/receiveEther/receive_as_function_name.sol

6 lines
288 B
Solidity

contract C {
function receive() external pure {}
}
// ----
// Warning 3445: (26-33): This function is named "receive" but is not the receive function of the contract. If you intend this to be a receive function, use "receive(...) { ... }" without the "function" keyword to define it.