mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
385 B
Solidity
12 lines
385 B
Solidity
interface I {
|
|
function f() external pure returns (uint);
|
|
}
|
|
contract B is I {
|
|
// The compiler used to have a bug where changing
|
|
// the return type was fine in this situation.
|
|
function f() public pure returns (uint, uint) {}
|
|
}
|
|
// ----
|
|
// TypeError: (182-230): Overriding function is missing 'override' specifier.
|
|
// TypeError: (182-230): Overriding function return types differ.
|