aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions/encode_array_of_struct.sol
blob: 7a4d8250ee1a72bea1318ff46674151ba92dd369 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
pragma experimental ABIEncoderV2;
contract C {
    struct S { uint x; }
    function f() public pure {
        S[] memory s;
        abi.encode(s);
    }
}
// ----
// Warning: (0-33): Experimental features are turned on. Do not use experimental features on live deployments.