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

6 lines
158 B
Solidity

contract C {
receive(uint256) external payable {}
}
// ----
// DeclarationError 6857: (24-33='(uint256)'): Receive ether function cannot take parameters.