mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			476 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			476 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     uint constant x = a;
 | |
|     uint constant a = b * c;
 | |
|     uint constant b = c;
 | |
|     uint constant c = b;
 | |
| }
 | |
| // ----
 | |
| // TypeError 6161: (17-36): The value of the constant x has a cyclic dependency via a.
 | |
| // TypeError 6161: (42-65): The value of the constant a has a cyclic dependency via b.
 | |
| // TypeError 6161: (71-90): The value of the constant b has a cyclic dependency via c.
 | |
| // TypeError 6161: (96-115): The value of the constant c has a cyclic dependency via b.
 |