solidity/test/libsolidity/syntaxTests/receiveEther/receive_as_function_name.sol
2022-04-01 23:41:18 -05:00

6 lines
298 B
Solidity

contract C {
function receive() external pure {}
}
// ----
// Warning 3445: (26-33='receive'): 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.