mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			250 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			250 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     uint constant x;
 | |
|     function f() public pure {
 | |
|         assembly {
 | |
|             let c1 := x
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // TypeError 4266: (17-32): Uninitialized "constant" variable.
 | |
| // TypeError 3224: (106-107): Constant has no value.
 |