mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma experimental ABIEncoderV2;
 | 
						|
library L {
 | 
						|
    struct S { uint a; T[] sub; bytes b; }
 | 
						|
    struct T { uint[2] x; }
 | 
						|
    function f(L.S storage s) public view {}
 | 
						|
    function g(L.S memory s) public view {}
 | 
						|
}
 | 
						|
// ----
 | 
						|
//     :L
 | 
						|
// [
 | 
						|
//   {
 | 
						|
//     "inputs":
 | 
						|
//     [
 | 
						|
//       {
 | 
						|
//         "components":
 | 
						|
//         [
 | 
						|
//           {
 | 
						|
//             "internalType": "uint256",
 | 
						|
//             "name": "a",
 | 
						|
//             "type": "uint256"
 | 
						|
//           },
 | 
						|
//           {
 | 
						|
//             "components":
 | 
						|
//             [
 | 
						|
//               {
 | 
						|
//                 "internalType": "uint256[2]",
 | 
						|
//                 "name": "x",
 | 
						|
//                 "type": "uint256[2]"
 | 
						|
//               }
 | 
						|
//             ],
 | 
						|
//             "internalType": "struct L.T[]",
 | 
						|
//             "name": "sub",
 | 
						|
//             "type": "tuple[]"
 | 
						|
//           },
 | 
						|
//           {
 | 
						|
//             "internalType": "bytes",
 | 
						|
//             "name": "b",
 | 
						|
//             "type": "bytes"
 | 
						|
//           }
 | 
						|
//         ],
 | 
						|
//         "internalType": "struct L.S",
 | 
						|
//         "name": "s",
 | 
						|
//         "type": "tuple"
 | 
						|
//       }
 | 
						|
//     ],
 | 
						|
//     "name": "g",
 | 
						|
//     "outputs": [],
 | 
						|
//     "stateMutability": "view",
 | 
						|
//     "type": "function"
 | 
						|
//   }
 | 
						|
// ]
 |