I have two contracts. One of them inherits another. Inside the parent contract I have the interface
interface Token {
function transfer(address to, uint256 value) external returns (bool);
}
I want to override one inside the child contract to
interface Token {
function transfer(address to, uint256 value) external returns (bool);
function balanceOf(address who) external view returns (uint256);
}
But compiler shows DeclarationError: Identifier already declared.
Is there a way to override an interface?