mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
506 B
Solidity
16 lines
506 B
Solidity
abstract contract A {
|
|
function f() external virtual;
|
|
}
|
|
abstract contract B {
|
|
function f() external virtual {}
|
|
}
|
|
abstract contract C is A, B {
|
|
function f() external virtual override(A, B);
|
|
}
|
|
abstract contract D is B, A {
|
|
function f() external virtual override(A, B);
|
|
}
|
|
// ----
|
|
// TypeError: (154-199): Overriding an implemented function with an unimplemented function is not allowed.
|
|
// TypeError: (236-281): Overriding an implemented function with an unimplemented function is not allowed.
|