mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			235 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			235 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| ==== Source: SourceName ====
 | |
| contract A {
 | |
| 	uint256 x;
 | |
| 	function f() public pure { x = 42; }
 | |
| }
 | |
| // ----
 | |
| // TypeError 8961: (SourceName:53-54): Function cannot be declared as pure because this expression (potentially) modifies the state.
 |