mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			300 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			300 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract test {
 | |
|     struct Data { uint a; uint8 b; mapping(uint => uint) c; bool d; }
 | |
|     mapping(uint => Data) public data;
 | |
|     constructor() public {
 | |
|         data[7].a = 1;
 | |
|         data[7].b = 2;
 | |
|         data[7].c[0] = 3;
 | |
|         data[7].d = true;
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // data(uint256): 7 -> 1, 2, true
 |