mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	And added a proper error message when constant types containing (nested) mapping types are used.
		
			
				
	
	
		
			4 lines
		
	
	
		
			153 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
		
			153 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
mapping(uint => uint) constant b = b;
 | 
						|
// ----
 | 
						|
// DeclarationError 3530: (0-36): The type contains a (nested) mapping and therefore cannot be a constant.
 |