solidity/test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol

10 lines
311 B
Solidity
Raw Normal View History

2018-11-12 14:14:13 +00:00
contract A {
function f(uint[] calldata) external pure {}
}
contract B {
function f(uint[] memory) internal pure {}
}
contract C is A, B {}
// ----
2019-09-16 12:33:43 +00:00
// TypeError: (126-147): Derived contract must override function "f". Function with the same name and parameter types defined in two or more base classes.