1 2 3 4 5 6 7 8 9
pragma abicoder v2; contract C { struct S { uint x; } function f() public pure { S[] memory s; abi.encode(s); } } // ----