mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			510 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			510 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // Checks that error is triggered no matter which order
 | |
| contract D {
 | |
|     function f() public {
 | |
|         l();
 | |
|     }
 | |
| }
 | |
| contract C {
 | |
|     constructor() { new D(); }
 | |
| }
 | |
| function l() {
 | |
|     s();
 | |
| }
 | |
| function s() {
 | |
|     new C();
 | |
| }
 | |
| // ----
 | |
| // TypeError 7813: (207-212): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 | |
| // TypeError 7813: (149-154): Circular reference to contract bytecode either via "new" or "type(...).creationCode" / "type(...).runtimeCode".
 |