diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/getter/recursive_struct.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/getter/recursive_struct.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/getter/recursive_struct.sol b/test/libsolidity/syntaxTests/getter/recursive_struct.sol new file mode 100644 index 00000000..d81cac60 --- /dev/null +++ b/test/libsolidity/syntaxTests/getter/recursive_struct.sol @@ -0,0 +1,8 @@ +contract C { + struct Y { + Y[] x; + } + mapping(uint256 => Y) public m; +} +// ---- +// TypeError: (53-83): Internal or recursive type is not allowed for public state variables. |