solidity/test/libsolidity/syntaxTests/inheritance/override/public_vars_multiple3.sol

11 lines
345 B
Solidity

contract A {
function foo() external virtual pure returns(A) { }
function foo(uint ) external virtual pure returns(uint) { return 4; }
function foo(uint , uint ) external pure virtual returns(A) { }
}
contract X is A {
uint public override foo;
}
// ----
// TypeError 4822: (225-249): Overriding public state variable return types differ.