From c54814b47bbc77e6754218ab1bdd479e87711b55 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 28 Nov 2018 12:18:32 +0100 Subject: Tests. --- test/libsolidity/syntaxTests/getter/recursive_struct.sol | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/libsolidity/syntaxTests/getter/recursive_struct.sol (limited to 'test/libsolidity/syntaxTests/getter/recursive_struct.sol') 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. -- cgit v1.2.3