solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/048_returning_arrays_in_structs_arrays.sol

7 lines
236 B
Solidity
Raw Normal View History

contract C {
struct S { string[] s; }
function f() public pure returns (S memory x) {}
}
// ----
2019-12-11 16:05:44 +00:00
// TypeError: (80-90): This type is only supported in ABIEncoderV2. Use "pragma experimental ABIEncoderV2;" to enable the feature.