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

6 lines
304 B
Solidity

contract C {
function fallback() external pure {}
}
// ----
// Warning 3445: (26-34='fallback'): 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.