solidity/test/libsolidity/syntaxTests/inheritance/override/override_multiple_no_virtual2.sol
2019-11-14 11:49:39 +01:00

14 lines
281 B
Solidity

contract A
{
function foo() virtual internal {}
}
contract B
{
function foo() internal {}
}
contract C is A, B
{
}
// ----
// TypeError: (94-116): Derived contract must override function "foo". Function with the same name and parameter types defined in two or more base classes.