mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
517 B
Solidity
14 lines
517 B
Solidity
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". Function with the same name and parameter types defined in two or more base classes.
|
|
// TypeError: (176-198): Derived contract must override function "g". Function with the same name and parameter types defined in two or more base classes.
|