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

12 lines
234 B
Solidity

function f()
{
new D();
}
contract D
{
receive() external payable { f; }
}
// ----
// TypeError 7813: (16-21='new D'): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".