solidity/test/libsolidity/syntaxTests/inheritance/override/triangle_impl.sol
2019-12-09 18:41:39 +01:00

7 lines
360 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". Two or more base classes define function with same name and parameter types.