mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
236 B
Solidity
13 lines
236 B
Solidity
contract C
|
|
{
|
|
// Internal uncalled function should not cause an cyclic dep. error
|
|
function foo() internal { new D(); }
|
|
function callFoo() virtual public { foo(); }
|
|
}
|
|
|
|
contract D is C
|
|
{
|
|
function callFoo() override public {}
|
|
}
|
|
// ----
|