solidity/test/libsolidity/syntaxTests/inheritance/override/public_vars_multiple5.sol
2022-04-01 23:41:18 -05:00

11 lines
429 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 7792: (281-289='override'): Public state variable has override specified but does not override anything.