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.
11 lines
143 B
Solidity
11 lines
143 B
Solidity
contract A {
|
|
function foo() private {}
|
|
}
|
|
contract B is A {
|
|
function foo() private {}
|
|
}
|
|
contract C is B {
|
|
function foo() public {}
|
|
}
|
|
// ----
|