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

11 lines
295 B
Solidity

contract X { function test() internal returns (uint256); }
contract Y is X {
uint256 public test = 42;
}
contract T {
constructor() public { new Y(); }
}
// ----
// DeclarationError: (81-105): Identifier already declared.
// TypeError: (0-58): Contract "X" should be marked as abstract.