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

15 lines
265 B
Solidity

contract A
{
function foo() virtual internal {}
}
contract B
{
function foo() internal {}
}
contract C is A, B
{
function foo() internal override(A, B) {}
}
// ----
// TypeError: (65-91): Trying to override non-virtual function. Did you forget to add "virtual"?