mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
413 B
Solidity
11 lines
413 B
Solidity
contract ERC20 {
|
|
function balanceOf(address, uint) external virtual view returns (uint) {}
|
|
function balanceOf(uint) external virtual view returns (uint) {}
|
|
function balanceOf() external virtual view returns (uint) {}
|
|
}
|
|
contract C is ERC20 {
|
|
mapping(address => uint) public override balanceOf;
|
|
}
|
|
// ----
|
|
// TypeError: (281-289): Public state variable has override specified but does not override anything.
|