solidity/test/libsolidity/syntaxTests/getter/nested_structs.sol

12 lines
330 B
Solidity
Raw Normal View History

2018-11-28 11:18:32 +00:00
contract C {
struct Y {
uint b;
}
struct X {
Y a;
}
mapping(uint256 => X) public m;
}
// ----
2019-12-11 16:05:44 +00:00
// TypeError: (88-118): The following types are only supported for getters in ABIEncoderV2: struct C.Y memory. Either remove "public" or use "pragma experimental ABIEncoderV2;" to enable the feature.