solidity/test/libsolidity/syntaxTests/inheritance/override/implement_private_function_by_public_variable.sol
2019-11-01 14:54:47 -05:00

10 lines
234 B
Solidity

contract X { function test() private returns (uint256); }
contract Y is X {
uint256 public test = 42;
}
contract T {
constructor() public { new Y(); }
}
// ----
// TypeError: (0-57): Contract "X" should be marked as abstract.