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

8 lines
163 B
Solidity
Raw Normal View History

interface X { function test() external returns (uint256); }
contract Y is X {
uint256 public test = 42;
}
contract T {
constructor() public { new Y(); }
}