solidity/test/libsolidity/syntaxTests/freeFunctions/named_fallback_warning.sol

4 lines
259 B
Solidity
Raw Normal View History

function fallback() {}
// ----
// Warning 3445: (9-17): This function is named "fallback" but is not the fallback function of the contract. If you intend this to be a fallback function, use "fallback(...) { ... }" without the "function" keyword to define it.