solidity/test/libsolidity/syntaxTests/errors/no_structs_in_abiv1.sol

8 lines
206 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
pragma abicoder v1;
struct S {uint a;}
contract C {
error MyError(S);
}
// ----
// TypeError 3061: (70-71): This type is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.