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

6 lines
286 B
Solidity

contract C {
function() external payable {}
}
// ----
// ParserError 2915: (45-46='{'): Expected a state variable declaration. If you intended this as a fallback function or a function to handle plain ether transactions, use the "fallback" keyword or the "receive" keyword instead.