mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
271 B
Solidity
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.
|