mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add additional test cases.
This commit is contained in:
parent
cea46acef7
commit
4bcc4d2fcf
@ -0,0 +1,2 @@
|
||||
interface ERC20 { function x() external returns (uint); }
|
||||
contract C is ERC20 { uint public x; }
|
@ -0,0 +1,8 @@
|
||||
contract A {
|
||||
uint public x;
|
||||
}
|
||||
contract C is A {
|
||||
function x() public returns (uint);
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (50-85): Identifier already declared.
|
Loading…
Reference in New Issue
Block a user