aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/182_equal_overload.sol
blob: cb9eb3fa899820931b5a182d09c4f914b2c80b2a (plain) (tree)
1
2
3
4
5
6
7






                                                                                  
contract C {
    function test(uint a) public returns (uint b) { }
    function test(uint a) external {}
}
// ----
// DeclarationError: (17-66): Function with same name and arguments defined twice.
// TypeError: (17-66): Overriding function visibility differs.