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

18 lines
440 B
Solidity

interface I {
function f() external;
function g() external;
}
interface J {
function f() external;
}
abstract contract A is I, J {
function f() external override (I, J) {}
}
abstract contract B is I {
function g() external override {}
}
contract C is A, B {
}
// ----
// TypeError: (254-276): Derived contract must override function "f". Function with the same name and parameter types defined in two or more base classes.