2019-11-14 11:48:15 +00:00
|
|
|
contract X {}
|
2019-07-02 15:30:54 +00:00
|
|
|
library test {
|
|
|
|
struct StructType { uint a; }
|
2019-11-14 11:48:15 +00:00
|
|
|
function f(StructType storage b, uint[] storage c, X d) public returns (uint[] memory e, StructType storage f) { f = f; }
|
|
|
|
function f1(uint[] memory c, X d) public pure returns (uint[] memory e) { }
|
2019-07-02 15:30:54 +00:00
|
|
|
}
|
|
|
|
// ----
|
2019-11-14 11:48:15 +00:00
|
|
|
// :X
|
|
|
|
// []
|
|
|
|
//
|
|
|
|
//
|
2019-07-02 15:30:54 +00:00
|
|
|
// :test
|
|
|
|
// [
|
|
|
|
// {
|
|
|
|
// "inputs":
|
|
|
|
// [
|
|
|
|
// {
|
2019-07-02 14:04:52 +00:00
|
|
|
// "internalType": "uint256[]",
|
2019-07-02 15:30:54 +00:00
|
|
|
// "name": "c",
|
|
|
|
// "type": "uint256[]"
|
|
|
|
// },
|
|
|
|
// {
|
2019-11-14 11:48:15 +00:00
|
|
|
// "internalType": "contract X",
|
2019-07-02 15:30:54 +00:00
|
|
|
// "name": "d",
|
2019-11-14 11:48:15 +00:00
|
|
|
// "type": "X"
|
2019-07-02 15:30:54 +00:00
|
|
|
// }
|
|
|
|
// ],
|
|
|
|
// "name": "f1",
|
|
|
|
// "outputs":
|
|
|
|
// [
|
|
|
|
// {
|
2019-07-02 14:04:52 +00:00
|
|
|
// "internalType": "uint256[]",
|
2019-07-02 15:30:54 +00:00
|
|
|
// "name": "e",
|
|
|
|
// "type": "uint256[]"
|
|
|
|
// }
|
|
|
|
// ],
|
|
|
|
// "stateMutability": "pure",
|
|
|
|
// "type": "function"
|
|
|
|
// }
|
|
|
|
// ]
|