solidity/test/libsolidity/syntaxTests/receiveEther/return_value.sol

7 lines
219 B
Solidity
Raw Normal View History

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.