mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
293 B
Solidity
11 lines
293 B
Solidity
contract X { function test() public returns (uint256); }
|
|
contract Y is X {
|
|
uint256 public test = 42;
|
|
}
|
|
contract T {
|
|
constructor() public { new Y(); }
|
|
}
|
|
// ----
|
|
// DeclarationError: (79-103): Identifier already declared.
|
|
// TypeError: (0-56): Contract "X" should be marked as abstract.
|