solidity/test/libsolidity/syntaxTests/bytecodeReferences/library_public_without_contract.sol
2021-04-06 16:25:02 +02:00

10 lines
275 B
Solidity

library L1 {
function foo() public { L2.foo(); }
}
library L2 {
function foo() internal { type(L1).creationCode; }
}
// ----
// TypeError 7813: (99-120): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".