mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			297 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| library A {
 | |
|     uint256 constant VAL = B.VAL + 1;
 | |
| }
 | |
| 
 | |
| library B {
 | |
|     uint256 constant VAL = A.VAL + 1;
 | |
| }
 | |
| 
 | |
| // ----
 | |
| // TypeError 6161: (16-48): The value of the constant VAL has a cyclic dependency via VAL.
 | |
| // TypeError 6161: (69-101): The value of the constant VAL has a cyclic dependency via VAL.
 |