mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
219 B
Solidity
7 lines
219 B
Solidity
contract C {
|
|
receive() external returns (uint256) {}
|
|
}
|
|
// ----
|
|
// TypeError: (17-56): Receive ether function must be payable, but is "nonpayable".
|
|
// TypeError: (44-53): Receive ether function cannot return values.
|