mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			332 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			332 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     uint constant x = 2;
 | |
|     function f() view public returns (uint) {
 | |
|         return x;
 | |
|     }
 | |
|     function g() public returns (uint) {
 | |
|         return x;
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // Warning: (42-107): Function state mutability can be restricted to pure
 | |
| // Warning: (112-172): Function state mutability can be restricted to pure
 |