mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			214 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			214 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma experimental "v0.5.0";
 | 
						|
 | 
						|
contract C {
 | 
						|
    function () pure returns (uint) x;
 | 
						|
    uint constant y = x();
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError: (105-108): Initial value for constant variable has to be compile-time constant.
 |