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

7 lines
146 B
Solidity
Raw Normal View History

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