solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/182_equal_overload.sol

8 lines
262 B
Solidity
Raw Normal View History

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.
2018-11-22 16:28:02 +00:00
// TypeError: (17-66): Overriding function return types differ.