solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/182_equal_overload.sol
2018-11-26 16:51:45 +01:00

8 lines
262 B
Solidity

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 return types differ.