mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			288 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			288 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     uint8 b = 23;
 | |
|     uint120[][] s;
 | |
|     uint8 a = 17;
 | |
|     function f() public {
 | |
|         s.push();
 | |
|         assert(s.length == 1);
 | |
|         assert(s[0].length == 0);
 | |
|         s[0].push();
 | |
|         assert(s[0].length == 1);
 | |
|         assert(s[0][0] == 0);
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // f() ->
 |