mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			334 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			334 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| ==== Source: A.sol ====
 | |
| import "B.sol";
 | |
| 
 | |
| uint256 constant A = B + 1;
 | |
| 
 | |
| ==== Source: B.sol ====
 | |
| import "A.sol";
 | |
| 
 | |
| uint256 constant B = A + 1;
 | |
| 
 | |
| // ----
 | |
| // TypeError 6161: (B.sol:17-43): The value of the constant B has a cyclic dependency via A.
 | |
| // TypeError 6161: (A.sol:17-43): The value of the constant A has a cyclic dependency via B.
 |