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

9 lines
341 B
Solidity

contract C {
receive() external payable { }
receive() external payable { }
receive() external payable { }
}
// ----
// DeclarationError 4046: (52-82='receive() external payable { }'): Only one receive function is allowed.
// DeclarationError 4046: (87-117='receive() external payable { }'): Only one receive function is allowed.