solidity/test/libsolidity/syntaxTests/inheritance/override/implement_private_function_by_public_variable.sol

9 lines
180 B
Solidity
Raw Normal View History

abstract contract X { function test() private returns (uint256) {} }
contract Y is X {
uint256 public test = 42;
}
contract T {
constructor() public { new Y(); }
}
2019-10-23 20:10:12 +00:00
// ----