solidity/test/libsolidity/syntaxTests/inheritance/override/virtual_private.sol
2019-12-02 21:59:00 +01:00

9 lines
240 B
Solidity

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.