solidity/test/libsolidity/syntaxTests/scoping/double_private_function_declaration.sol
Enrique Jorge 1276c43ad8 Fix inheritedFunctions returns private functions
OverrideChecker treated private functions as inheritable. Hence, a child
contract function could not be assigned the function name of a parent
contract private function.
2022-08-16 16:19:32 +01:00

7 lines
171 B
Solidity

contract A {
function foo() private {}
function foo() private {}
}
// ----
// DeclarationError 1686: (14-39): Function with same name and parameter types defined twice.