mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
230 B
Solidity
10 lines
230 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.
|