solidity/test/libsolidity/syntaxTests/bytecodeReferences/circular_reference_internal_function.sol

13 lines
236 B
Solidity
Raw Normal View History

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 {}
}
// ----