solidity/test/libsolidity/syntaxTests/bytecodeReferences/library_called.sol
2022-04-01 23:41:18 -05:00

12 lines
327 B
Solidity

library L1 {
function foo() internal { new A(); }
}
library L2 {
function foo() internal { L1.foo(); }
}
contract A {
function f() public pure { L2.foo(); }
}
// ----
// TypeError 7813: (43-48='new A'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".