aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/getter/nested_structs.sol
blob: 1068f287115718599c8c8c5a1eb3bead637acc78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract C {
    struct Y {
        uint b;
    }
    struct X {
        Y a;
    }
    mapping(uint256 => X) public m;
}
// ----
// TypeError: (88-118): The following types are only supported for getters in the new experimental ABI encoder: struct C.Y memory. Either remove "public" or use "pragma experimental ABIEncoderV2;" to enable the feature.