solidity/test/libsolidity/syntaxTests/inheritance/fallback_receive/receive_unimplemented.sol

14 lines
271 B
Solidity

interface I {
receive(bytes2) external payable;
}
interface J is I {
receive() external payable override;
}
contract C is J {
receive() external payable override {}
}
// ----
// DeclarationError 6857: (25-33): Receive ether function cannot take parameters.