aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/236_cyclic_binary_dependency.sol
blob: c287507d79e25a2d918438b3988694c36baa148e (plain) (tree)
1
2
3
4
5




                                                                                                                       
contract A { function f() public { new B(); } }
contract B { function f() public { new C(); } }
contract C { function f() public { new A(); } }
// ----
// TypeError: (131-136): Circular reference for contract creation (cannot create instance of derived or same contract).