Disallow use of virtual and private together

This commit is contained in:
Mathias Baumann
2019-11-27 18:52:41 +01:00
parent 7ce280d7bd
commit 7bc6645218
4 changed files with 24 additions and 5 deletions
@@ -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.