mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			281 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			281 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
  uint immutable x;
 | 
						|
  uint immutable y;
 | 
						|
  constructor() {
 | 
						|
    ++x;
 | 
						|
    --y;
 | 
						|
  }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// TypeError 3969: (77-78): Immutable variables must be initialized using an assignment.
 | 
						|
// TypeError 3969: (86-87): Immutable variables must be initialized using an assignment.
 |