mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			407 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			407 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract A { function foo() public { new D(); } }
 | |
| contract C { function foo() public { new A(); } }
 | |
| contract D is C {}
 | |
| // ----
 | |
| // TypeError 7813: (37-42): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 | |
| // TypeError 7813: (87-92): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 |