solidity/test/libsolidity/syntaxTests/freeFunctions/named_receive_warning.sol

4 lines
254 B
Solidity

function receive() {}
// ----
// Warning 3445: (9-16): 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.