mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
265 B
Solidity
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"?
|