aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inheritance/override/state_variable_function.sol
blob: fb7f3fbddd47a12cc6e13fb1c647c727e527aed3 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract A {
    uint public x;
}
contract C is A {
    function x() public returns (uint);
}
// ----
// DeclarationError: (50-85): Identifier already declared.
// TypeError: (50-85): Redeclaring an already implemented function as abstract