aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/078_fallback_function_twice.sol
blob: 8d839da03272f8974ef7d3e82abf5cf9c74aa2fb (plain) (blame)
1
2
3
4
5
6
7
contract C {
    uint x;
    function() public { x = 2; }
    function() public { x = 3; }
}
// ----
// DeclarationError: (62-90): Only one fallback function is allowed.