mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
368 B
Solidity
7 lines
368 B
Solidity
|
contract A { function f() public pure virtual {} }
|
||
|
contract B is A { function f() public pure virtual override {} }
|
||
|
contract C is A, B { }
|
||
|
contract D is A, B { function f() public pure override(A, B) {} }
|
||
|
// ----
|
||
|
// TypeError: (116-138): Derived contract must override function "f". Function with the same name and parameter types defined in two or more base classes.
|