mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			465 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
library L {
 | 
						|
    function f() internal {
 | 
						|
        new C();
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
contract D {
 | 
						|
    function f() public {
 | 
						|
        L.f();
 | 
						|
    }
 | 
						|
}
 | 
						|
contract C {
 | 
						|
    constructor() { new D(); }
 | 
						|
}
 | 
						|
 | 
						|
// ----
 | 
						|
// TypeError 7813: (48-53): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 | 
						|
// TypeError 7813: (161-166): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 |