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

10 lines
299 B
Solidity

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