solidity/test/libsolidity/syntaxTests/fallback/old_syntax.sol
2020-01-14 23:24:27 +01:00

6 lines
269 B
Solidity

contract C {
function() external {}
}
// ----
// ParserError: (37-38): 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.