mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			217 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			217 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     struct S {
 | |
|         uint[] a;
 | |
|     }
 | |
|     S s;
 | |
|     function f() public {
 | |
|         s.a.length = 4;
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // TypeError: (95-105): Member "length" is read-only and cannot be used to resize arrays.
 |