solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol

7 lines
141 B
Solidity

contract C {
uint x;
fallback(uint a) external { x = 2; }
}
// ----
// TypeError: (37-45): Fallback function cannot take parameters.