mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
339 B
Solidity
10 lines
339 B
Solidity
abstract contract A {
|
|
function test() private virtual returns (uint256);
|
|
}
|
|
abstract contract X is A {
|
|
function test() private override returns (uint256) {}
|
|
}
|
|
// ----
|
|
// TypeError 7792: (128-136): Function has override specified but does not override anything.
|
|
// TypeError 3942: (23-73): "virtual" and "private" cannot be used together.
|