mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
340 B
Solidity
11 lines
340 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: (225-249): Overriding public state variable return types differ.
|