mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
248 B
Solidity
12 lines
248 B
Solidity
// Tests that private functions do not shadow, and are not shadowed by, inheriting contract's functions.
|
|
contract A {
|
|
function foo() private {}
|
|
}
|
|
contract B is A {
|
|
function foo() private {}
|
|
}
|
|
contract C is B {
|
|
function foo() public {}
|
|
}
|
|
// ----
|