mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
OverrideChecker treated private functions as inheritable. Hence, a child contract function could not be assigned the function name of a parent contract private function.
7 lines
171 B
Solidity
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.
|