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