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

13 lines
342 B
Solidity
Raw Normal View History

pragma abicoder v1;
2018-11-28 11:18:32 +00:00
contract C {
struct Y {
uint b;
}
struct X {
Y a;
}
mapping(uint256 => X) public m;
}
// ----
// TypeError 2763: (108-138): The following types are only supported for getters in ABI coder v2: struct C.Y memory. Either remove "public" or use "pragma abicoder v2;" to enable the feature.