Add additional test cases.

This commit is contained in:
Daniel Kirchner 2018-07-16 15:44:31 +02:00
parent cea46acef7
commit 4bcc4d2fcf
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
interface ERC20 { function x() external returns (uint); }
contract C is ERC20 { uint public x; }

View File

@ -0,0 +1,8 @@
contract A {
uint public x;
}
contract C is A {
function x() public returns (uint);
}
// ----
// DeclarationError: (50-85): Identifier already declared.