solidity/test/libsolidity/syntaxTests/structs/recursion/return_recursive_structs2.sol

8 lines
216 B
Solidity
Raw Normal View History

2018-03-15 17:19:45 +00:00
contract C {
struct S { uint a; S[2][] sub; }
function f() public pure returns (uint, S memory) {
2018-03-15 17:19:45 +00:00
}
}
// ----
// TypeError: (94-102): Recursive type not allowed for public or external contract functions.