solidity/test/libsolidity/syntaxTests/inheritance/override/ambiguous_base_and_unique_mention.sol
2019-12-09 18:41:39 +01:00

18 lines
432 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". Two or more base classes define function with same name and parameter types.