mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
262 B
Solidity
10 lines
262 B
Solidity
contract A {
|
|
function test() private returns (uint256) {}
|
|
}
|
|
contract X is A {
|
|
function test() public returns (uint256) {}
|
|
}
|
|
// ----
|
|
// TypeError: (80-123): Overriding function visibility differs.
|
|
// TypeError: (80-123): Private functions cannot be overridden.
|