mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			295 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			295 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| function f() {
 | |
|     uint x = 2;
 | |
|     x;
 | |
| }
 | |
| function g(uint[] storage x) pure { x[0] = 1; }
 | |
| // ----
 | |
| // Warning 2018: (0-39): Function state mutability can be restricted to pure
 | |
| // TypeError 8961: (76-80): Function cannot be declared as pure because this expression (potentially) modifies the state.
 |