solidity/test/libsolidity/syntaxTests/specialFunctions/encode_array_of_struct.sol
2020-11-24 14:57:45 +01:00

10 lines
164 B
Solidity

pragma abicoder v2;
contract C {
struct S { uint x; }
function f() public pure {
S[] memory s;
abi.encode(s);
}
}
// ----