mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
276 B
Solidity
10 lines
276 B
Solidity
// Tests that private functions are not overridden by inheriting contracts.
|
|
contract A {
|
|
function foo() private {}
|
|
}
|
|
contract B is A {
|
|
function foo() private override {}
|
|
}
|
|
// ----
|
|
// TypeError 7792: (160-168): Function has override specified but does not override anything.
|