solidity/test/libsolidity/syntaxTests/scoping/double_private_function_declaration.sol

8 lines
246 B
Solidity

// Tests that two private functions cannot be defined with the same name.
contract A {
function foo() private {}
function foo() private {}
}
// ----
// DeclarationError 1686: (88-113): Function with same name and parameter types defined twice.