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

14 lines
501 B
Solidity
Raw Normal View History

abstract contract A {
function f() external {}
function g() external virtual;
}
abstract contract B {
function g() external {}
function f() external virtual;
}
contract C is A, B {
}
// ----
// TypeError: (176-198): Derived contract must override function "f". Two or more base classes define function with same name and parameter types.
// TypeError: (176-198): Derived contract must override function "g". Two or more base classes define function with same name and parameter types.