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

15 lines
270 B
Solidity
Raw Normal View History

2019-11-05 17:25:34 +00:00
contract A
{
function foo() virtual internal {}
}
contract B
{
function foo() internal {}
}
contract C is A, B
{
function foo() internal override(A, B) {}
}
// ----
// TypeError 4334: (65-91): Trying to override non-virtual function. Did you forget to add "virtual"?