abstract contract X { function test() internal virtual returns (uint256); } contract Y is X { uint256 public test = 42; } contract T { constructor() public { new Y(); } } // ---- // DeclarationError: (98-122): Identifier already declared.