aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions/encodePacked_array_of_structs.sol
blob: 036e108aa5bc1d696bb8e092a7b5b36207d3fb9b (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    struct S { uint x; }
    function f() public pure {
        S[] memory s;
        abi.encodePacked(s);
    }
}
// ----
// TypeError: (116-117): This type cannot be encoded.