solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/078_fallback_function_twice.sol

8 lines
174 B
Solidity

contract C {
uint x;
fallback() external { x = 2; }
fallback() external { x = 3; }
}
// ----
// DeclarationError: (64-94): Only one fallback function is allowed.