2019-11-28 15:53:13 +00:00
|
|
|
abstract contract X { function test() private virtual returns (uint256); }
|
2018-11-30 23:08:42 +00:00
|
|
|
contract Y is X {
|
2019-11-28 15:53:13 +00:00
|
|
|
uint256 public override test = 42;
|
2018-11-30 23:08:42 +00:00
|
|
|
}
|
|
|
|
contract T {
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() { new Y(); }
|
2018-11-30 23:08:42 +00:00
|
|
|
}
|
2019-10-23 20:10:12 +00:00
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 5225: (97-130): Public state variables can only override functions with external visibility.
|
|
|
|
// TypeError 3942: (22-72): "virtual" and "private" cannot be used together.
|