mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow use of virtual and private together
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
abstract contract A {
|
||||
function test() private virtual returns (uint256);
|
||||
}
|
||||
abstract contract X is A {
|
||||
function test() private override returns (uint256);
|
||||
}
|
||||
// ----
|
||||
// TypeError: (23-73): "virtual" and "private" cannot be used together.
|
||||
Reference in New Issue
Block a user